php/.claude-plugin/hooks.json
Snider 4b24a6d186
Some checks failed
CI / PHP 8.4 (push) Failing after 1m51s
CI / PHP 8.3 (push) Failing after 2m4s
feat: add claude plugin for PHP/Laravel development
Skills: php, php-agent, laravel
API: route generation (TS/JS/OpenAPI from Laravel routes)
Hooks: auto-format PHP with Pint, debug statement warnings
2026-03-09 18:15:42 +00:00

27 lines
762 B
JSON

{
"$schema": "https://claude.ai/schemas/hooks.json",
"hooks": {
"PostToolUse": [
{
"matcher": "tool == \"Edit\" && tool_input.file_path matches \"\\.php$\"",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/php-format.sh"
}
],
"description": "Auto-format PHP files after edits using Pint"
},
{
"matcher": "tool == \"Edit\" && tool_input.file_path matches \"\\.php$\"",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/check-debug.sh"
}
],
"description": "Warn about debug statements (dd, dump, var_dump, print_r)"
}
]
}
}