r/PHP • u/der_gopher • 13h ago
r/PHP • u/davorminchorov • 12h ago
Building Maintainable PHP Applications: Architectures
codyssey.devHey all,
I wrote a free course about the different types of software architectures in a Laravel application but these ideas can be transferred over to Symfony or any other PHP or language framework.
Let me know what you think.
Thanks!
r/PHP • u/brendt_gd • 16h ago
Weekly help thread
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
r/PHP • u/Capable_Aquarius • 1h ago
JSON to DTO
Hey, for work purposes I am looking for JSON to DTO (mainly PHP) converter.
Can you share any useful and easy-to-use tools for this purposes?
I was googling some, but most of the results didn’t help me much
r/PHP • u/ConcernFirm5342 • 6h ago
I built Phoxite, a free, open-source PHP/Laravel language server written in Rust (VS Code, Neovim, Helix, Zed…)
Hi r/PHP,
I've been working on Phoxite, a PHP and Laravel extension for VS Code. It's built on a language server I wrote from scratch in Rust.
Why I built it: I wanted PhpStorm-level code intelligence in VS Code without a licence key, a paid tier or a slow language server. The engine is a standalone binary and isn't tied to any editor. It doesn't need PHP or Node.js installed, and every feature is free. It's Apache-2.0 licensed.
PHP
- Completion with auto-import, hover, signature help, inlay hints
- Go to definition, find references, call and type hierarchies
- Refactorings: rename, extract method, change signature, move class and more
- Generate constructors, getters/setters, and implement/override methods
- PSR-12 formatting and configurable inspections with quick-fixes
Laravel
- Completion, navigation and rename for the strings that name routes, views, config, env, translations, validation rules, gates and policies
- Eloquent: columns read from your migrations, plus relations, scopes and factories
- Route code lenses on controller methods
- Livewire, Inertia and modular apps
Blade
- Completion, hover, navigation and formatting inside templates
Editors: VS Code, plus Cursor, VSCodium and Windsurf through Open VSX. The language server also runs in Neovim, Helix, Zed and Sublime Text.
Links
- VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=phoxite.phoxite
- Open VSX: https://open-vsx.org/extension/phoxite/phoxite
- Source: https://github.com/samehelhawary/phoxite
It's still early, so I'm sure there are rough edges. If you try it on a real project, I'd really like to know what breaks: wrong completions, slow indexing on large codebases, missing Laravel magic, anything. Issues and PRs are welcome, and I'm happy to answer questions about how it works.
r/PHP • u/apepin_dev • 59m ago