r/laravel • • 4h ago

31% of closed (not merged) RPs for 2026 don't have a single comment

17 Upvotes

I will just leave this here; but this doesn't seem like a healthy state for the community / project.


r/laravel • • 1h ago

Public beta for Pun which is ultrafast unified PHP toolchain.

2 Upvotes

hey all

been working on this thing called pun. it's one binary that does format, lint, analyse and composer install for php projects, all from one pun.toml

quick rundown:

pun format - only touches layout, never what the code does

pun lint --fix - rewrites stuff to a better way, fixes are marked safe/unsafe

pun analyse - finds bugs, never edits anything

pun install - fills vendor/ from your composer.lock

pun migrate - turns your pint.json / rector.php / phpstan.neon into one pun.toml

the code is 100% AI generated but tested over months. not gonna pretend otherwise.

it's a beta so there will be bugs. if you try it on a real project and something breaks or feels off, tell me, that's the whole point.

if you don't wanna try it, all good too.

repo: https://github.com/shipfastlabs/pun

docs: https://punphp.com

Check pun in action by u/enunomaduro https://www.youtube.com/watch?v=lyMk4gY5p4c


r/laravel • • 18h ago

I built a PHP language server for VS Code and Zed with deep Laravel support (now with PHP 8.6)

23 Upvotes

I didn't fully like how any LSP behaves on VSCode and Zed (Zed is the editor I've been trying for years and my preferred one for now). I tried a lot of them, from paid ones to freemium to open source.

So 8 months ago I started a project I'd been thinking about making for years, in a language I'm still learning today (Go), with AI tools like Claude Code (which made this possible).

The goal is to make my own agency's daily work easier: mostly Laravel and Symfony work, plus the odd edit on WordPress websites. I'm way more experienced in Laravel, but I've done some Symfony work, mostly in open source rather than on the framework itself. The idea is to simplify all the harder parts I found across different IDEs and LSPs in the massive PHP ecosystem we have today (and hopefully keep up with some of what I call "legacy" stuff like WordPress).

The Zed extension is still waiting for the Zed team to accept my PR to their extensions repo (it's been there for months...), but you can build it from the source repository (sorry). The VSCode one has been published since this LSP started.

Anyway, a brief look at priorities and features that are already implemented:

  • Laravel "magic" support: models, config, localisation
  • Blade support, as well as .phtml and PHP within HTML in .php files (WordPress templates)
  • Container support (dependency injection)
  • PHP 8.6 support (new): it's read from your composer.json and is now the default when a project doesn't say. New functions and classes like clamp() complete and hover. The 8.6 deprecations show as warnings with the replacement PHP suggests.
  • Core language support from PHP 7.4 to 8.6, including some PHP extensions
  • QoL (Quality of Life):

    • Autocompletion for variables, classes and namespaces, ordered by scope (including PSR-4 autoloaded ones).
    • Refactor tools: moving files to different folders rewrites the namespace.
    • Hover cards on dependencies in composer.json, etc.
  • Coverage support: mostly in VSCode. Zed doesn't show coverage in the editor the way VSCode does, so there it shows in the hover on symbols.
  • Speed and low memory use while staying feature-rich
  • Portable: WebAssembly, so the LSP can run in vscode.dev (on the web, as a worker, sadly with limitations...)
  • Generics and array shapes (modelled on PHPStan)
  • Built-in diagnostics, plus PHPStan's own when it's installed as a Composer dependency in the project

btw this post isn't AI generated. I just wanted to share it here to hear feedback from users, which to me is more valuable than adding features for the sake of it. Feedback, issues and PRs are all very welcome!

Repo: https://github.com/Tusk-PHP/lsp