Skip to main content
plugin official · Anthropic

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.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install php-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official
Open on GitHub

What 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 .php files
  • surface syntax and structure warnings in PHP code
  • supply language server context directly to Claude Code

Example prompts for the agent

  • Check index.php for syntax errors using LSP diagnostics
  • Inspect src/Kernel.php with the PHP language server

How to install php-lsp

Plugin marketplace

/plugin install php-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official

Step 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

Similar plugins

All plugins for Programming languages →

From the same set123

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor