By zircote
PHP language server plugin for Claude Code with Phpactor LSP integration and automated hooks for linting, formatting, and testing
npx claudepluginhub zircote/lsp-marketplace --plugin php-lspA Claude Code plugin providing comprehensive PHP development support through:
# Run the setup command (after installing the plugin)
/setup
Or manually:
# Install Phpactor LSP
composer global require phpactor/phpactor
# Install development tools
composer global require friendsofphp/php-cs-fixer
composer global require phpstan/phpstan
composer global require squizlabs/php_codesniffer
The plugin configures Phpactor for Claude Code via .lsp.json:
{
"php": {
"command": "phpactor",
"args": ["language-server"],
"extensionToLanguage": {
".php": "php",
".phtml": "php"
},
"transport": "stdio"
}
}
Capabilities:
| Hook | Trigger | Description |
|---|---|---|
php-syntax-check | **/*.php | PHP syntax validation |
php-cs-fixer | **/*.php | Code style formatting |
phpstan-check | **/*.php | Static analysis |
phpcs-lint | **/*.php | PSR-12 compliance |
php-todo-fixme | **/*.php | Surface TODO/FIXME comments |
| Tool | Installation | Purpose |
|---|---|---|
phpactor | composer global require phpactor/phpactor | LSP server |
php-cs-fixer | composer global require friendsofphp/php-cs-fixer | Formatting |
phpstan | composer global require phpstan/phpstan | Static analysis |
phpcs | composer global require squizlabs/php_codesniffer | Linting |
php-lsp/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── .lsp.json # Phpactor configuration
├── commands/
│ └── setup.md # /setup command
├── hooks/
│ └── scripts/
│ └── php-hooks.sh
├── tests/
│ └── SampleTest.php # Test file
├── CLAUDE.md # Project instructions
└── README.md # This file
MIT
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use
Complete collection of battle-tested Claude Code configs agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
20 SEO and GEO skills plus 15 commands on one shared operating contract. Includes protocol-layer gates for content quality, domain trust, entity truth, and campaign memory alongside keyword research, content creation, audits, monitoring, schema markup, and AI citation optimization. v9.0.0 adds legal/compliance hardening (FTC, GDPR, EU AI Act, WCAG), 10 new playbooks, SKILL.md size compliance (≤350 lines), native install for Gemini CLI / Qwen / Amp / Kimi / CodeBuddy, and the experimental /seo:geo-drift-check command.
Efficient skill management system with progressive discovery — 410+ production-ready skills across 33+ domains
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use