What problem does it solve?
This Skill provides comprehensive guardrails, patterns, and best practices for modern PHP development, ensuring code quality, maintainability, and adherence to standards.
Core Features & Use Cases
- Enforces Strict Typing: Guides developers to use type declarations everywhere.
- Adheres to PSR Standards: Promotes PSR-12 coding style and PSR-4 autoloading.
- Modern PHP Features: Demonstrates idiomatic use of Enums, Readonly Classes, Match Expressions, and more.
- Robust Error Handling: Outlines strategies for domain-specific exceptions and avoiding common pitfalls.
- Testing & Tooling: Provides guidance on PHPUnit, PHPStan, and PHP-CS-Fixer configurations.
- Use Case: When starting a new PHP project or refactoring an existing one, this Skill acts as a definitive guide to ensure the codebase is clean, secure, and follows industry best practices.
Quick Start
Review the PHP guide to understand the core principles and guardrails for developing with PHP 8.1+.