← All extensions

PHP LSP

v0.1.0 · by Jorg Sowa · added 3 November 2026

PHP language support via php-lsp

Language servers

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for PHP LSP. The extension's id is php-lsp.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

php-lsp for Zed

Zed extension for php-lsp — a blazing fast PHP language server written in Rust.

Features

  • Diagnostics and error reporting
  • Code completion
  • Go to definition
  • Hover documentation

Installation

Search for PHP LSP in Zed's extension marketplace (cmd-shift-x).

The extension downloads the right php-lsp binary for your platform on first use. If you already have php-lsp in your PATH, it uses that instead.

Configuration

Add settings to your Zed settings.json under the lsp key:

{
  "lsp": {
    "php-lsp": {
      "initialization_options": {
        "phpVersion": "8.5",
        "excludePaths": ["cache/*", "storage/*"],
        "diagnostics": {
          "deprecatedCalls": false
        }
      }
    }
  }
}
OptionTypeDescription
phpVersionstringTarget PHP version. Auto-detected from composer.json or system php if omitted.
excludePathsstring[]Glob patterns to exclude from analysis.
diagnosticsobjectPer-diagnostic toggles.

Requirements

Pre-built binaries for macOS, Linux, and Windows — no manual setup.

License

MIT