php-lsp — Claude Code plugin: what it does, how to install
Connects the Intelephense language server to Claude Code. It delivers code intelligence and diagnostics for .php files.
/plugin install php-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-officialWhat php-lsp does
This plugin integrates Intelephense into Claude Code. When reading .php files, the agent uses the language server to inspect project definitions and catch syntax problems.
Intelephense is not bundled inside the plugin. You must install it globally beforehand using npm install -g intelephense or yarn global add intelephense. Without that global executable, the language server fails to launch.
What it helps with
- run Intelephense diagnostics across
.phpfiles - surface syntax and structure warnings in PHP code
- supply language server context directly to Claude Code
Example prompts for the agent
- Check
index.phpfor syntax errors using LSP diagnostics - Inspect
src/Kernel.phpwith the PHP language server
How to install php-lsp
Plugin marketplace
/plugin install php-lsp@claude-plugins-official/plugin marketplace add anthropics/claude-plugins-officialStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about php-lsp
How do I install php-lsp in Claude Code?
First, add the official marketplace with /plugin marketplace add anthropics/claude-plugins-official, then install the plugin using /plugin install php-lsp@claude-plugins-official. Also install Intelephense globally via npm install -g intelephense or yarn global add intelephense.
What does the php-lsp plugin do?
It connects Claude Code to the Intelephense server. This grants the agent access to code intelligence and diagnostics for PHP scripts.
Which file extensions does php-lsp support?
The plugin supports files with the .php extension.
Source text
php-lsp · Apache-2.0
# php-lsp PHP language server (Intelephense) for Claude Code, providing code intelligence and diagnostics. ## Supported Extensions `.php` ## Installation Install Intelephense globally via npm: ```bash npm install -g intelephense ``` Or with yarn: ```bash yarn global add intelephense ``` ## More Information - [Intelephense Website](https://intelephense.com/) - [Intelephense on npm](https://www.npmjs.com/package/intelephense)
© Anthropic · Apache-2.0 · anthropics/claude-plugins-official