@elyracode/lsp-php
v0.9.11
Published
PHP LSP integration for Elyra — semantic code navigation and diagnostics for Laravel and PHP projects
Maintainers
Readme
@elyracode/lsp-php
PHP LSP integration for Elyra. Starts a PHP language server process per session and exposes semantic code navigation and diagnostics as agent tools — go-to-definition, find references, hover, and diagnostics for Laravel and PHP projects.
Prerequisites
A PHP language server must be available. The extension prefers Intelephense and falls back to phpactor.
Install Intelephense (recommended) globally:
npm install -g intelephense…or per project:
npm install -D intelephenseThe extension looks for intelephense in the project's node_modules/.bin/ first, then a global intelephense, then a global phpactor.
A composer.json must exist in the project root. The extension does nothing if one is not found.
Note: Intelephense's core navigation (definitions, references, hover, diagnostics) works with the free tier. A licence key only unlocks additional premium features.
Installation
elyra install npm:@elyracode/lsp-phpAvailable Tools
| Tool | Description |
|------|-------------|
| php_definitions | Go to the definition of a PHP symbol at a given file position |
| php_references | Find all references to a PHP symbol across the project |
| php_diagnostics | Get PHP errors and warnings for a file |
| php_hover | Get type information and PHPDoc for a symbol |
All tools accept 1-based line and column numbers and return human-readable text results. The first call after a session starts may take a moment while the language server indexes the workspace.
