PHP Reddit – Telegram
PHP Reddit
34 subscribers
294 photos
39 videos
25K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Why are so many packages designed exclusively for Laravel?

I have noticed that many packages that are being shared here lately are designed exclusively for Laravel. I know it is one of the largest (if not THE largest) framework for PHP, but does that mean that everyone should develop exclusively for it?

In my opinion every developer should look at the whole ecosystem around PHP and not just target one specific framework. IMO a framework agnostic package would be better as more people would benefit from it.

I don't want to link to any individual packages here because I don't want to blame the package maintainers. They have great ideas with their packages.

Of course, I don't have a solution for this. But I want to know if I am the only one who thinks this situation is going in the wrong direction or if my assumption is just plain wrong?

https://redd.it/1r8v229
@r_php
This media is not supported in your browser
VIEW IN TELEGRAM
I built this Laravel playground that runs completely in your browser (with no backend)

https://redd.it/1r8ezbx
@r_php
AuditTrailBundle v2 Released

Hi,

Thank you for your support and for showing interest in this project — I truly appreciate it.

I’ve put effort into improving the project by fixing code quality issues, strengthening security, and making it faster and more reliable.

Please note that this new version includes breaking changes, and I encourage you to upgrade to the latest version to benefit from these improvements.

You can review the changelog and benchmark results for more details.


cheers

https://redd.it/1rbeack
@r_php
Does anyone know any alternative for Laravel vscode extension? (A set of extensions is also fine)
https://redd.it/1rgxjsl
@r_php
Recommend please resources where I can learn internal PHP stuff

Recommend please resources where I can learn internal PHP stuff. l mean resources where I can learn how PHP works inside, it's internal mechanism and etc

https://redd.it/1rgyrf4
@r_php
I built a full open-source demo store with Laravel Shopper — Livewire 3, Volt, Flux UI, multi-currency checkout

Hey everyone,

I've been working on Laravel Shopper (an open-source e-commerce framework for Laravel) and just released a complete demo store to showcase what it can do.

Live demo: https://demo.laravelshopper.dev

Source code: https://github.com/shopperlabs/demo.laravelshopper.dev

What's in it:

\- Product catalog with attribute filtering

\- Variant selector with real-time stock checking

\- Multi-step checkout (shipping → delivery → payment)

\- Cash on delivery (Stripe coming soon)

\- Zone-based pricing with currency switching

\- Customer accounts with address management

\- Blog with categories

\- Full admin panel at /cpanel (Shopper + Filament 4)

Tech stack: Laravel 12, Livewire 3, Volt, Flux UI (free edition), Tailwind v4, Filament 4

The entire codebase is open source. Happy to answer any questions about the architecture or patterns used.

https://redd.it/1rgp1lg
@r_php
Can I use Laravel 13 yet?

I know it's not officially releasing til next month but at this point that could be anywhere from 3 days to 3 weeks away. I'm wanting to start a new app now.


I'm curious if it's close enough to where it's safe to assume there will be little to no breaking changes from the 13.x branch now til release? That way I could just cut a new project from the 13.x branch now instead of using 12.x and have to go though a full upgrade a few weeks into the new project.



Does anyone have any insight into this?

https://redd.it/1rhlhzo
@r_php
Distributed locking, concurrency control, queues & notifiers

I had planned to get a bit more built before sharing this but after seeing https://www.reddit.com/r/PHP/comments/1rgc6jq/locksmith\_a\_flexible\_concurrency\_locking\_library/ \- I figured why not.

I've been working on a library that combines locking primitives (lock, semaphore) and/or rate limiters to create a Seal

This can be optionally combined with a Queue \- FIFO, Lottery, Priority etc

And optionally with a Notifier (Mercure, Centrifugo etc)

You could use it for something as simple as a global lock on something:

$seal = new SymfonyLockSeal(
new LockFactory(new LockRedisStore($this->redis)),
'global-lock',
);

$airlock = new OpportunisticAirlock($seal);

if ($result->isAdmitted()) {
// do a thing
}

Concurrency and rate limiting on an external API call:

// 50 RPM, 3 Concurrent
$seal = new CompositeSeal(
new SymfonySemaphoreSeal(
new SemaphoreFactory(new SemaphoreRedisStore($this->redis)),
resource: 'external-api',
limit: 3
),
new SymfonyRateLimiterSeal($fiftyPerMinuteLimit->create('external-api'))
);

$airlock = new OpportunisticAirlock($seal);

if ($result->isAdmitted()) {
// call the API
}

All the way to FIFO queues with notifiers.

I've built some real world examples here - https://airlock.clegginabox.co.uk (there's bots on the queues). I'd love any suggestions on other real world use cases - building the library against them has allowed me to work out a bunch of edge cases I wouldn't have been able to otherwise.

So far I've only got support for Symfony's Lock, Semaphore and RateLimiter. I plan to add Laravel's Lock and RateLimiter & framework support for both Symfony and Laravel.

Only Mercure as far as notifiers - what else do people use and would like to see support for?

I also plan to release some web components to make wiring up the front end of a queue much easier.

Would love to hear any thoughts, feedback, suggestions. Cheers!

Examples: http://airlock.clegginabox.co.uk

Code: https://github.com/clegginabox/airlock-php

Docs: https://clegginabox.github.io/airlock-php/

https://redd.it/1rhrqym
@r_php