Add PHPantom language server#128
Open
roxblnfk wants to merge 1 commit into
Open
Conversation
Register PHPantom (https://github.com/AJenbo/phpantom_lsp), a fast Rust-based PHP language server with out-of-the-box Laravel support, as a fourth selectable language server alongside PhpTools, Intelephense and Phpactor. Closes zed-extensions#125. The adapter resolves the `phpantom_lsp` binary from the worktree PATH, a downloaded GitHub release matching the current platform/arch, or a user-provided `lsp.phpantom.binary.path` override, mirroring the standalone PHPantom Zed extension by Anders Jenbo.
samdark
approved these changes
Jul 2, 2026
|
That's the best language server available right now for PHP. Using it daily with Zed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #125.
Adds PHPantom — a fast, Rust-based PHP language server as a fourth selectable language server alongside PhpTools, Intelephense and Phpactor.
What's added
phpantomlanguage server entry inextension.toml.src/language_servers/phpantom.rs) that resolves thephpantom_lspbinary, in order: a user-providedlsp.phpantom.binary.pathoverride →phpantom_lspon the worktree PATH → a cached download → the matching GitHub release asset (apple-darwin/unknown-linux-gnu→tar.gz,pc-windows-msvc→zip;aarch64/x86_64).The download logic mirrors the standalone PHPantom Zed extension by @AJenbo; the
binary.pathoverride is the one addition, so users can point at their own build on platforms without a prebuilt release asset.Usage
{ "languages": { "PHP": { "language_servers": ["phpantom", "!phptools", "!intelephense", "!phpactor", "..."] } } }