packages/omo-codex/plugin/skills/lsp-setup/references/php/README.md
php — intelephense --stdio.phpnpm install -g intelephenseIntelephense is a Node package, so Node.js (and npm) must be installed first.
npm install -g intelephensenpm install -g intelephensenpm install -g intelephenseConfirm it resolves:
command -v intelephense
Builtin — usually NO config needed (auto-resolved by extension). Configure only to set priority, init options, override extensions, or disable. Same JSON shape in .codex/lsp-client.json (Codex) AND .opencode/lsp.json (OpenCode/omo):
{ "lsp": { "php": { "priority": 100 } } }
For builtin ids in a PROJECT config, command is supplied automatically — only set priority/initialization/extensions/disabled/env. A fully custom (non-builtin) server with its own command must go in the USER config (~/.codex/lsp-client.json).
Intelephense's premium features (rename, find-all-implementations, declaration providers, etc.) require a licence key. Supply it via initialization:
{
"lsp": {
"php": {
"initialization": {
"licenceKey": "YOUR-LICENCE-KEY"
}
}
}
}
Without a key the server runs fine in free mode.
phpactor language-server. Pure-PHP, no Node dependency.intelephense must be on PATH; reopen the shell after a global npm install. If missing, check npm bin -g is on PATH.intelephense.environment.phpVersion via initialization to match your project.bun ../../scripts/verify-lsp.ts path/to/file.php