r/PHP • • 7h ago

Laravel’s Move to Rust and Go Exposes the Collateral Damage It Left Behind in PHP

0 Upvotes

Laravel releasing official frameworks for Rust and Go isn’t just an expansion play. It is the clearest signal yet that the architectural habits Laravel spent over a decade normalizing in PHP are hitting a wall in the age of AI-assisted development.

For years, Laravel was celebrated as PHP’s savior. It made building web apps fast, expressive, and approachable. But that convenience came with quiet collateral damage to the broader PHP ecosystem:

  1. It normalized "magic" over explicit architecture. Static facades, global helpers, container auto-resolution, and magic model properties trained thousands of developers to optimize for keystrokes instead of clear boundaries, dependency graphs, and predictable types.
  2. It blurred the line between "Laravel developer" and "PHP engineer." While modern PHP steadily evolved toward strict types, static analysis, and clean OOP (pushed forward by tools like PHPStan, Psalm, and Symfony), much of the ecosystem remained anchored to active-record coupling and framework-first patterns that resist static reasoning.
  3. It created codebases that punish static tools and now AI agents. What feels ergonomic to a human writing a tutorial becomes opaque to static analyzers and autonomous coding agents. When behavior lives in runtime resolution and implicit conventions, machines have to guess what a compiler would otherwise verify.

Now, look at what Laravel itself highlights in its Rust and Go releases: compile-time schema and validation checks, explicit structs, no silent lazy-loading, and type-safe boundaries. In other words, the very guardrails Laravel downplayed in PHP are now front-and-center selling points when targeting compiled languages.

Laravel didn’t cause 20 years of PHP’s rough history. However, by making runtime magic the gold standard for a generation of PHP apps, it left the ecosystem with millions of lines of code poorly suited for an era where static guarantees matter more than ever.

Disclosure: I am the developer behind the Kinetis Framework.


r/PHP • • 9h ago

What we've shipped in Leaf since 5.0: FrankenPHP worker mode, PHP 8.6, agent-friendly defaults

0 Upvotes

Hi folks!!! Leaf maintainer here. Some of you might remember Leaf 5 which we shipped in August, our take on modularised and lightweight PHP without sacrificing all the goodies you get in other batteries-included frameworks.

There's a full post on all the stuff we've done since then at blog.leafphp.dev/posts/fastest-way-to-build, but I wanted to share a brief here.

- We introduced a new version of our Eien server which is now based on Franken PHP
- Better PHP 8.6 support
- Clearer instructions for agents on how to write better code
- Some upcoming products to help folks build faster

Leaf is at about 822,000 installs across the whole ecosystem, free and open source, run by a very small team. We'd love you to give it a try, whether you're writing code yourself or using an agent. Happy to answer anything, and if you try Eien and the numbers do not hold up on your setup, I would genuinely like to hear it.


r/PHP • • 14h ago

Web UI for the Laravel and Symfony scheduler, every run with its output and exit code

Thumbnail youtube.com
1 Upvotes

the usual setup is one * * * * * php artisan schedule:run line in crontab. works fine, until you want to know what a task did last night. output goes to /dev/null by default, and if it threw, the stack trace is somewhere in laravel.log between everything else.

so i made runwisp/runwisp. it runs the schedule you already have and keeps every run in a web UI: what it printed, the exit code, how long it took, and the exception if it threw.

composer require runwisp/runwisp
php artisan runwisp:work

that replaces the cron line. routes/console.php stays as it is.

on Symfony it's bin/console runwisp:work, your #[AsCronTask] and #[AsPeriodicTask] work as they are and messenger:consume scheduler_default can go.

few things r/PHP might care about:

  1. every run is its own php artisan runwisp:run <task> process. a command that leaks memory can't take the next run down with it, and Stop in the UI kills the actual process.
  2. when when(), between(), maintenance mode or withoutOverlapping() skips a run, it shows up as skipped with the reason, like the when() at routes/console.php:10 returned false. a streak of skips folds into one row so it doesn't flood the history.
  3. your queue worker can run under it too and gets restarted when it exits. so Supervisor can go as well.
  4. runwisp:check lists every task with its next run and validates the config. it exits with 1 on a mistake, so you can put it in CI. after a deploy runwisp:reload picks up the new schedule and running tasks keep going.
  5. each run happens once per data directory, however many workers you start. you don't need onOneServer().
  6. #[RunWisp\Task(retry_attempts: 3, timeout: '10m')] on a command or job adds retries, timeouts and Slack/Telegram alerts. the options are PHPStan array shapes generated from the config's JSON schema, so a typo fails phpstan (and runwisp:check too).

under the hood it's one Go binary with the scheduler, process supervisor, SQLite and the UI embedded. the composer plugin downloads it for you. no Redis, no extra DB, no Node. CodeIgniter 4 and plain PHP scripts work too.

Laravel 11 to 13, Symfony 6.4+, PHP 8.2+.

https://github.com/runwisp/runwisp

https://docs.runwisp.com/sdk/php/laravel/

https://docs.runwisp.com/sdk/php/symfony/

what does your schedule run on right now? curious what i'm actually replacing :)


r/PHP • • 10h ago

Laravel Rust is 18x faster at solving a problem you don't have

Thumbnail reddit.com
36 Upvotes

r/PHP • • 18h ago

i built a php extension for prometheus metrics

7 Upvotes

hey guys, i have built an extension that exposes some main metrics about your app's functions and entrypoints and right now i need your test and feedback so we can make it more mature together.
https://github.com/hatam-abolghasemi/php-prometheus-extension

briefly if i have to explain what my mindset and intention was for creating it, it's like there is no php-exporter anywhere and traces and APMs are expensive to have and so what if we can make something in between? it's not basically an exporter, it's not a profiler neither. it's just a wrapper around functions and it's tried to be built as lightweight as possible. that's it. test and give me feedback please.

thanks in advance