> php-tooling

PHP ecosystem tooling, dependency management, and static analysis. Use when managing Composer dependencies, running PHPStan, or configuring PHP build tools. (triggers: composer.json, composer, lock, phpstan, xdebug)

fetch
$curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/php-tooling?format=md"
SKILL.mdphp-tooling

PHP Tooling

Priority: P2 (MEDIUM)

Structure

project/
├── composer.json
├── phpstan.neon
└── .php-cs-fixer.php

Implementation Guidelines

  • Composer Lock: Commit composer.lock for environment parity.
  • PSR-4: Strictly map namespaces to src/ and tests/.
  • 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, test in composer.json.

Anti-Patterns

  • Manual Requires: No Manual Require: Rely on Composer autoload.
  • Blind Updates: No Blind Updating: Review composer.lock diffs.
  • 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"
  }
}

┌ stats

installs/wk0
░░░░░░░░░░
github stars341
██████████
first seenMar 17, 2026
└────────────

┌ repo

HoangNguyen0403/agent-skills-standard
by HoangNguyen0403
└────────────

┌ tags

└────────────