Add these to the repo, update the claude.md to make them aware they are thier. No longer wastes tokens on running these since they will autorun in code and provide feedback when file changes are made. They only run on the edited file, so a githook precommmit is still required since editing/moving/deleting a file could mean another file no longer lints correctly.
settings.json-->.claude/settings.jsonhook-pint.sh-->scripts/hook-pint.shhook-phpstan.sh-->scripts/hook-phpstan.sh
Add the following to claude.md
This project includes Claude Code hooks that automatically run PHP code quality checks when files are modified:
Automatic Quality Checks:
- PHP Pint formatting validation runs on only the edited PHP file
- PHPStan static analysis runs on only the edited PHP file
- Non-PHP files are automatically skipped
The hooks will show:
- ✅ PASSED when code meets quality standards
- ❌ FAILED when issues are found, with guidance on how to fix them