Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By MarjovanLierv3.0.0In 1 marketplace
PHP language server: intelephense, phpantom-lsp, and phpforge fanned out via the bundled lspfan multiplexer for completion, diagnostics, and code actions.
Language servers for diagnostics and code navigation.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code plugin providing PHP language support by fanning one LSP connection out to three language servers: intelephense for completion and typed hover, phpantom-lsp for navigation, semantic tokens and external analysers, and phpforge for ported PHP Hammer and EA Extended inspections.
Claude Code accepts only one language server per file type. To run several together, this plugin points Claude Code at bin/lspfan, a small multiplexer that starts every configured server, forwards each request to all of them, and merges the replies.
It replaces lspx, which the plugin used until version 2.0.0. lspx hangs Claude Code indefinitely on textDocument/hover and textDocument/documentSymbol: it forwards server-to-client requests such as workspace/configuration and client/registerCapability to a client that never answers them, then waits forever for a merge that cannot complete, with no timeout. Claude Code's side of that is tracked in issue #32595 and issue #16360, both still unresolved.
workspace/configuration with one empty object per requested item and to client/registerCapability with null, rather than forwarding them to a client that ignores them.LSPFAN_TIMEOUT and LSPFAN_INIT_TIMEOUT. A slow or silent backend degrades the answer instead of hanging the editor.publishDiagnostics replaces the whole list for a file, so without merging the last server to publish would erase every other server's findings.Merge rules: list results concatenate and deduplicate, completion items merge into one list, hover blocks stack separated by a rule, anything else takes the first non-null answer.
Set LSPFAN_LOG=/path/to/file to trace dispatch decisions.
phpactor was removed in version 3.0.0, and its refactoring and code generation actions went with it. Its diagnostics went too: phpactor ran the phpstan, psalm, mago, mago-lint and php-cs-fixer providers inside its own process, so this plugin no longer reports them.
| Extension | Language |
|---|---|
.php | PHP |
.phtml | PHP |
.php3 | PHP |
.php4 | PHP |
.php5 | PHP |
.phps | PHP |
lspfan needs only Python 3, which macOS and most Linux distributions already provide. Install it and the three servers onto your PATH:
# the multiplexer, shipped with this plugin
install -m 755 bin/lspfan ~/.local/bin/lspfan
# intelephense
npm install -g intelephense
# phpantom-lsp
brew install phpantom-lsp
# phpforge (local crate)
cargo install --path /path/to/phpforge
{
"php": {
"command": "lspfan",
"args": [
"--lsp", "phpantom_lsp --stdio",
"--lsp", "phpforge lsp",
"--lsp", "intelephense --stdio"
],
"extensionToLanguage": {
".php": "php",
".phtml": "php",
".php3": "php",
".php4": "php",
".php5": "php",
".phps": "php"
},
"transport": "stdio",
"initializationOptions": {},
"settings": {}
}
}
Server order no longer matters, unlike under lspx where the last-listed server's reply could replace the others on completion and hover.
Note: results appear once per answering server, so a class shows up in
documentSymbolas many times as there are servers that implement it. That is inherent to fanning out.
The .lsp.json schema was extracted from Claude Code binary version 2.0.55.
To verify or update the schema for newer versions:
strings ~/.local/share/claude/versions/2.0.55/claude | grep -A 50 'extensionToLanguage'
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub marjovanlier/claude-plugins --plugin php-lspxPlugins from other owners that cover similar ground