Skip to main content
Back to registry

php-best-practices

asyrafhussin/agent-skills

Modern PHP 8.x patterns, PSR standards, type system best practices, and SOLID principles. Contains 51 rules for writing clean, maintainable PHP code.

Installs668
Install command
npx skills add https://github.com/asyrafhussin/agent-skills --skill php-best-practices
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Modern PHP 8.x patterns, PSR standards, type system best practices, and SOLID principles. Contains 51 rules for writing clean, maintainable PHP code. Always check the project's PHP version before giving any advice. Features vary significantly across 8.0 - 8.5. Never suggest syntax that doesn't exist in the project's version. Check composer.json for the required PHP version: Also check the runtime version: Only suggest features available in the detected version. If the user asks about upgrading or newer features, mention what becomes available at each version. Reference these guidelines when: 8.0+: 8.1+: 8.2+: 8.3+: 8.4+: 8.5+: For detailed examples and explanations, see the rule files: When auditing code, output findings in this format: Example: Read individual rule files for detailed explanations: - 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 - type-return-types - Always declare return types - type-parameter-types - Type all parameters - type-property-types - Type class properties - type-union-types - Use union types effectively - type-intersection-types - Use intersection types - type-nullable-types - Handle nullable types properly - type-void-never - Use void/never for appropriate return...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does php-best-practices do?

Modern PHP 8.x patterns, PSR standards, type system best practices, and SOLID principles. Contains 51 rules for writing clean, maintainable PHP code.

Is php-best-practices good?

php-best-practices does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does php-best-practices work with?

php-best-practices currently lists compatibility with codex, gemini-cli, opencode, kimi-cli, amp, github-copilot.

What are alternatives to php-best-practices?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install php-best-practices?

npx skills add https://github.com/asyrafhussin/agent-skills --skill php-best-practices

Related skills

More from asyrafhussin/agent-skills

Related skills

Alternatives in Software Engineering