What problem does it solve?
This Skill reduces defects and inconsistency in PHP codebases by enforcing strict typing, strong static analysis, secure patterns, and repeatable enterprise architecture from the start.
Core Features & Use Cases
- Modern PHP 8.3+ implementations: Applies strict typing, typed DTOs/value objects, and clean enterprise structure for long-lived services.
- Framework-ready enterprise architecture: Works well with Laravel and Symfony by generating controllers, dependency injection wiring, middleware, and API scaffolding (REST/GraphQL).
- Quality gates for delivery: Requires PHPStan level 9 and PHPUnit/Pest passing tests (with coverage expectations) before considering the feature complete.
- Secure-by-default coding: Validates inputs, protects against XSS/SQL injection, avoids dangerous patterns (e.g., var_dump in production), and ensures safe password handling.
- Reference-backed implementation guidance: Uses dedicated references for modern PHP features, Laravel/Symfony patterns, async PHP, and testing quality standards.
Quick Start
Use the php-pro Skill to implement a new authenticated user registration endpoint in a PHP 8.3 Laravel app by insisting on strict typing, PSR-12 compliance, PHPStan level 9 clean results, and passing PHPUnit tests before delivery.