php-tooling
PHP ecosystem tooling, dependency management, and static analysis. Use when managing Composer dependencies, running PHPStan, or configuring PHP build tools.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
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"
}
}
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-03-11
- Mise à jour de l’index
- 2026-03-11
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!