PHP LSP

Set up the PHP LSP plugin for Claude Code with Intelephense for diagnostics, definition lookup, and PHP code navigation.

How to install PHP LSP

Install the Intelephense executable separately and make it available on the PATH used by Claude Code.

  1. Install the language server separately and make sure intelephense is available on your PATH.
  2. Start Claude Code once to register Anthropic’s official marketplace. Then run the install command in your terminal.
  3. Start a new Claude Code session in a project for the language and open a source file to confirm the server loads.
Claude Code · Install in Claude Code
claude plugin install php-lsp@claude-plugins-official

Try a first task

Open a small PHP service and follow a renamed class from the call site to its definition. Verify that a stale import produces a diagnostic and correcting it clears the error.

Package components

  • PHP language server

Publisher references

View on Claude Marketplace

Anthropic

Browse Plugins