PHP Pro guides Claude through PHP application work in five steps: review the framework and dependencies, design typed models, implement with strict types and dependency injection, secure the input, then run PHPStan at level 9 and the test suite.
Every implementation delivers a typed entity or DTO, a service class and a test. The skill includes patterns for readonly DTOs, constructor-injected services, PHPUnit tests and backed enums.
What You Get
- A five-step workflow that ends in static analysis and tests
- Code patterns for a readonly DTO, a typed service with constructor injection, a PHPUnit test and a backed enum
- Reference files for modern PHP features, Laravel, Symfony, async PHP with Swoole and ReactPHP, and testing quality
- Rules on strict types, hashed passwords, parameterized queries, thin controllers and configuration in .env
- A delivery order: domain models, services, controllers, tests and a short design note
Common Use Cases
- Adding a typed service and DTO to a Laravel application
- Setting up dependency injection and event handling in Symfony
- Writing PHPUnit or Pest tests with mocked repositories
- Moving an older codebase to enums, readonly classes and typed properties
- Building a REST or GraphQL API with validated input
What Makes It Unique
The skill makes static analysis a gate. PHPStan level 9 and the test suite must both pass clean before delivery, and the baseline structure of DTO, service and test applies to every feature. It covers Laravel, Symfony and async PHP in one skill with separate reference files.
Under The Hood
The skill is instructions and reference markdown that Claude loads by topic; it ships no scripts. Following it, Claude writes PHP source, migrations and test files in your project and runs vendor/bin/phpstan and vendor/bin/phpunit or pest from the command line. It does not call outside services.