php-best-practices
php best practices
What it does
- Writing or reviewing PHP code
- Implementing classes and interfaces
- Using PHP 8.x modern features
- Ensuring type safety
- Following PSR standards
- Applying design patterns
- type-strict-mode - Declare strict types in every file
Requirements & configuration
- { "require": { "php": "^8.1" } } // -> 8.1 rules and below
- { "require": { "php": "^8.3" } } // -> 8.3 rules and below
- { "require": { "php": ">=8.4" } } // -> 8.4 rules and below
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
php-best-practices FAQ
What does the php-best-practices skill do?
PHP 8.x modern patterns, PSR standards, and SOLID principles. Use when reviewing PHP code, checking type safety, auditing code quality, or ensuring PHP best practices. Triggers on "review PHP", "check PHP code", "audit PHP", or "PHP best practices". Writing or reviewing PHP code Implementing classes and interfaces
What does php-best-practices require?
{ "require": { "php": "^8.1" } } // -> 8.1 rules and below { "require": { "php": "^8.3" } } // -> 8.3 rules and below { "require": { "php": ">=8.4" } } // -> 8.4 rules and below
How do I install php-best-practices?
Run: npx -y skills add https://github.com/asyrafhussin/agent-skills --skill php-best-practices --agent claude-code — the source lives at github.com/asyrafhussin/agent-skills.
Maintain php-best-practices?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[php-best-practices on getagentictools](https://getagentictools.com/skills/asyrafhussin-agent-skills-php-best-practices?ref=badge) npx agentictools info skills/asyrafhussin-agent-skills-php-best-practices The second line is the CLI lookup for this page — handy in READMEs and docs.