Symfony has released an official Language Server Protocol implementation called Symfony Language Tools, bringing Symfony-aware autocompletion, hover info, navigation, rename support, diagnostics and quick fixes to PHP, Twig and YAML files. It ships as a native VS Code extension and works out of the box with Neovim, plus standalone binaries for any LSP-capable editor. It understands routing, dependency injection, Twig, translations, env vars, Messenger, Security, forms, Doctrine and more, and boots the app kernel in debug mode to read runtime metadata for accuracy rather than guessing from source alone. Most of the code was written and reviewed by AI models (Claude and GPT), directed by Fabien Potencier. The tool is currently an experimental beta.

3m read timeFrom symfony.com
Post cover image
Table of contents
Native VS Code IntegrationWhat It UnderstandsOther EditorsWritten with AIAn Experimental Beta

Questions this post answers

Is there an official Symfony language server extension for VS Code?

Yes, Symfony Language Tools is the official Symfony LSP server with a native VS Code extension, published under the account 'symfony' on the marketplace. It adds Symfony-aware completion, hover, navigation, references, rename support, diagnostics, quick fixes and code lenses to PHP, Twig and YAML files, and works alongside existing PHP language servers like Intelephense. daily.dev helps developers track new editor tooling like this as Symfony workflows evolve.

What Symfony features does the Symfony Language Tools LSP server support?

It covers the framework end to end: routing, dependency injection, Twig templates, translations, environment variables, bundle configuration, Messenger, events, Security, forms, validation, serializer metadata, AssetMapper, Stimulus, Live Components and Doctrine. It boots the application kernel in debug mode to read the compiled container and router for accurate diagnostics rather than guessing from source files. Developers evaluating editor tooling for Symfony can follow coverage of features like this on daily.dev.

Can I use the Symfony LSP server in Neovim instead of VS Code?

Yes, Neovim is supported out of the box through the symfony-lsp server and a bundled nvim-lspconfig configuration, enabled with vim.lsp.enable('symfony_lsp'). Standalone archives for Linux, macOS and Windows are also available on GitHub Releases for any other LSP-capable editor, since the server speaks the standard Language Server Protocol. daily.dev keeps developers configuring editor tooling like Neovim LSP setups informed of new options.

8K Impressions