mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 21:53:28 +08:00
681 B
681 B
paths
| paths | |||||
|---|---|---|---|---|---|
|
PHP Hooks
This file extends common/hooks.md with PHP specific content.
PostToolUse Hooks
Configure in ~/.claude/settings.json:
- Pint / PHP-CS-Fixer: Auto-format edited
.phpfiles. - PHPStan / Psalm: Run static analysis after PHP edits in typed codebases.
- PHPUnit / Pest: Run targeted tests for touched files or modules when edits affect behavior.
Warnings
- Warn on
var_dump,dd,dump, ordie()left in edited files. - Warn when edited PHP files add raw SQL or disable CSRF/session protections.