Agent skill
PHP Tooling
PHP ecosystem tooling, dependency management, and static analysis.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/tooling
Metadata
Additional technical details for this skill
- labels
-
php composer toolchain static-analysis
- triggers
-
{ "files": [ "composer.json" ], "keywords": [ "composer", "lock", "phpstan", "xdebug" ] }
SKILL.md
PHP Tooling
Priority: P2 (MEDIUM)
Structure
project/
├── composer.json
├── phpstan.neon
└── .php-cs-fixer.php
Implementation Guidelines
- Composer Lock: Commit
composer.lockfor environment parity. - PSR-4: Strictly map namespaces to
src/andtests/. - Static Analysis: Integrate PHPStan (level 5+) in CI.
- Linting: Automate PSR-12 enforcement via PHP CS Fixer.
- Debugging: Use Xdebug for profiling; avoid
var_dump. - Scripts: Define
lint,analyze,testincomposer.json.
Anti-Patterns
- Manual Requires: No Manual Require: Rely on Composer autoload.
- Blind Updates: No Blind Updating: Review
composer.lockdiffs. - Production Debug: No Prod Xdebug: Disable debugging in live env.
- Vendor Commits: No Vendor Check-in: Exclude
vendor/from git.
Code
{
"autoload": {
"psr-4": { "App\\": "src/" }
},
"scripts": {
"analyze": "phpstan analyze"
}
}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?