What it is
php-lsp is a Claude Code plugin that provides a PHP language server, Intelephense, to Claude Code. Its purpose is to bring code intelligence and diagnostics to PHP code.
The plugin supports files with the .php extension. It depends on Intelephense being installed on the system, and the README gives instructions for installing it globally with either npm or yarn.
The README links to the Intelephense website (https://intelephense.com/) and the Intelephense package on npm (https://www.npmjs.com/package/intelephense) for more information.
Who it's for
- PHP developers using Claude Code
- Developers who want code intelligence and diagnostics for .php files in Claude Code
Requirements
Requirements
- Intelephense installed globally (via npm or yarn)
- npm or yarn to install Intelephense
Setup
Install Intelephense with npm
Install the Intelephense language server globally via npm.
bashnpm install -g intelephenseOr install Intelephense with yarn
As an alternative to npm, install Intelephense globally with yarn.
bashyarn global add intelephense
هاد البلجن بيربط Claude Code مع Intelephense، سيرفر اللغة تبع PHP، مشان يعطيك ذكاء بالكود وتشخيص للأخطاء بملفات PHP.