Language Server Protocol [partial] implementation that powers editor
intelligence for xphp files across any LSP-capable editor:
- diagnostics
- navigation
- refactoring
- completion
- code lenses
The server can be shipped as a self-contained PHAR that can be used by other tools, like IDE plugins.
The server reuses the parent xphp package's AST, generic-instantiation
Registry, and TypeHierarchy directly -- no second parser, no duplicated
language semantics.
For the public-facing feature inventory plus what's planned next, see roadmap.
composer require xphp-lang/language-servermake build/phar # → var/xphp-lsp.pharThe PHAR is the distribution format for editor integrations bundle -- zero-config install for editors that can't reasonably depend on a Composer-managed working tree.
---
config:
layout: tidy-tree
---
mindmap
root((LSP))
Navigate
definition
typeDefinition
references
implementation
callHierarchy
typeHierarchy
documentSymbol
workspaceSymbol
documentHighlight
Edit
rename
willRenameFiles
codeAction
codeLens
Understand
hover
signatureHelp
inlayHint
foldingRange
semanticTokens
Validate
parse
bound
duplicate-template
undefined-bareword
constructor-arg-mismatch
Find
completion
completionItem/resolve
Performance
AST cache
stub cache
tolerant-parse
UTF-16 columns
short-name tie-break
lint mode