npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

symfony-lsp

v0.1.1

Published

Symfony language server (templates, routes, services, translations, Doctrine, security) for Zed, without PHP on the host

Readme

symfony-lsp

A language server for Symfony projects: navigation, completion, hover and diagnostics for templates, routes, services, parameters, translations, Doctrine, Messenger, events and security, in PHP, Twig and YAML files.

It is the server of the Symfony extension for the Zed editor, which installs and updates this package automatically. It speaks the standard Language Server Protocol, so other editors can use it too.

  • No PHP on the host. The kernel is never booted: the server reads the project files and the compiled cache in var/cache/dev. Projects running in Docker work out of the box.
  • Windows, macOS and Linux.
  • No runtime dependency. The package is a single bundled script plus the tree-sitter grammars (WASM).
  • Conservative. When the answer is uncertain (dynamic strings, PHP configuration files, missing cache), it stays silent rather than guessing.

Features

| Area | Where | What you get | |---|---|---| | Templates | render(), renderView(), renderBlock(), #[Template]; Twig extends, include, embed, import, from, use, include(), source() | Go to definition, completion, missing template warning. @Bundle/, @!Bundle/, twig.paths, bundle overrides | | Routes | path(), url(), redirectToRoute(), generateUrl(), security.yaml | Go to definition, completion of names and parameters, hover (path, methods, controller), unknown route warning | | Services | '@id' in config/services.yaml, #[Autowire], security.yaml | Go to definition, completion, hover (class, tags, aliases), unknown service warning | | Parameters | %param% and %env(...)% in YAML and #[Autowire] | Go to definition, completion of parameters, .env variables and env processors | | Translations | ->trans(), \|trans, {% trans %} | Go to definition, completion, missing key warning for the default locale | | Doctrine | getRepository(), form types, QueryBuilder, findBy() / findOneBy() / count(), mappedBy / inversedBy / indexBy | Go to repository or property, completion of entity fields, DQL semantic highlighting | | Messenger, events | Message and event classes, event names and constants | Go to implementation lists handlers, listeners and subscribers | | Security | security.yaml, is_granted(), #[IsGranted], ->isGranted(), ->denyAccessUnlessGranted() | Providers, firewall services and routes, roles and role hierarchy |

Usage

The server communicates over stdio and needs Node.js 20 or later:

npm install symfony-lsp
node node_modules/symfony-lsp/dist/server.js --stdio

Register it for the PHP, Twig and YAML languages in your editor. It detects the Symfony project from the workspace folder (a folder with composer.json and bin/console, or one of its direct subfolders).

Generate the dev cache in your container (bin/console cache:warmup) to get bundle routes and services, and the "not found" diagnostics.

Zed

Install the Symfony extension from the Zed extensions page: nothing else to set up. Enable semantic tokens for the DQL highlighting:

{
  "languages": {
    "PHP": { "semantic_tokens": "combined" }
  }
}

Links

License

MIT