php-tooling
Configure PHP ecosystem tooling, dependency management, and static analysis. Use when managing Composer dependencies, running PHPStan, or configuring PHP build tools.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install multi-language-standards-php-toolingManual setup by platform
Claude Code
~/.claude/skills/multi-language-standards-php-tooling/SKILL.md
Instructions
PHP Tooling
Priority: P2 (MEDIUM)
Structure
project/
├── composer.json
├── phpstan.neon
└── .php-cs-fixer.php
Implementation Guidelines
- Composer: Always commit
composer.lockfor applications. Usecomposer auditandcomposer install in CI(notupdate) for locked versions. - Autoloading: Strictly enforce PSR-4 autoloading in
composer.json(e.g.,"psr-4": {"App\\": "src/"}— ensure backslashes escaped). Runcomposer dump-autoloadafter changes. - Static Analysis: Mandate PHPStan (Level 5+) or Psalm in CI. Install via
composer require --dev phpstan/phpstan. Createphpstan.neonwithparameters: { paths: [src], level: 6 }. Run viavendor/bin/phpstan analyse. - Linting: Automate PSR-12 standards via
composer require --dev friendsofphp/php-cs-fixer. Configure in.php-cs-fixer.phpwith$config->setRules(['@PSR12' => true]). Usephp-cs-fixerto enforce standards. - Execution: Use
PHP 8.1+to leverage performance improvements (JIT, OpCache). - Scripts: Define standard task
"scripts": {incomposer.json("analyze": "phpstan analyse", "test": "phpunit", "check": ["@fix", "@analyze", "@test"]}). Run withcomposer check. - Debugging: Use
Xdebugfor local development only. Remove xdebug.so from prod config or set XDEBUG_MODE=off in production. - Docker: Use Multi-stage Dockerfiles with
php:8.x-fpmorphp:8.x-clibase images.
Anti-Patterns
- No manual
require: Use Composer PSR-4 autoloading only. - No blind composer updates: Review
composer.lockdiff first. - No Xdebug in production: Disable extension in prod env.
- No
vendor/in git: Exclude via.gitignore; use Composer.
Security
Reviews (0)
Related skills
Browse all →More from Multi-Language Standards
View source →More Build skills
Browse category →Frequently asked questions about php-tooling
What does the php-tooling skill do?
Configure PHP ecosystem tooling, dependency management, and static analysis. Use when managing Composer dependencies, running PHPStan, or configuring PHP build tools. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the php-tooling skill?
Run `npx @skills-hub-ai/cli install multi-language-standards-php-tooling` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/multi-language-standards-php-tooling/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does php-tooling work with?
php-tooling runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the php-tooling skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use php-tooling after installing it?
In Claude Code, type `/multi-language-standards-php-tooling` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the php-tooling skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.