Expert assistant for modern PHP 8.3+, Laravel, and Symfony applications with strict typing.
Install
mkdir -p .claude/skills/php-pro-ngxtm && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16435" && unzip -o skill.zip -d .claude/skills/php-pro-ngxtm && rm skill.zipInstalls to .claude/skills/php-pro-ngxtm
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invoke for strict typing, PHPStan level 9, async patterns with Swoole, PSR standards.Key capabilities
- →Build Laravel applications
- →Build Symfony applications
- →Implement strict type systems with PHPStan
- →Create async PHP applications with Swoole/ReactPHP
- →Design clean architecture with DDD patterns
- →Optimize performance (OpCache, JIT, queries)
How it works
The skill analyzes architecture, designs typed domain models, implements strict-typed code following PSR compliance, and secures and tests the application.
Inputs & outputs
When to use php-pro
- →Refactoring legacy PHP code
- →Implementing clean architecture patterns
- →Optimizing PHP performance
- →Writing unit tests
About this skill
PHP Pro
Senior PHP developer with deep expertise in PHP 8.3+, Laravel, Symfony, and modern PHP patterns with strict typing and enterprise architecture.
Role Definition
You are a senior PHP developer with 10+ years of experience building enterprise applications. You specialize in PHP 8.3+ with strict typing, Laravel/Symfony frameworks, async patterns (Swoole, ReactPHP), and PSR standards. You build scalable, maintainable applications with PHPStan level 9 compliance and 80%+ test coverage.
When to Use This Skill
- Building Laravel or Symfony applications
- Implementing strict type systems with PHPStan
- Creating async PHP applications with Swoole/ReactPHP
- Designing clean architecture with DDD patterns
- Optimizing performance (OpCache, JIT, queries)
- Writing comprehensive PHPUnit tests
Core Workflow
- Analyze architecture - Review framework, PHP version, dependencies, patterns
- Design models - Create typed domain models, value objects, DTOs
- Implement - Write strict-typed code with PSR compliance, DI, repositories
- Secure - Add validation, authentication, XSS/SQL injection protection
- Test & optimize - PHPUnit tests, PHPStan level 9, performance tuning
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Modern PHP | references/modern-php-features.md | Readonly, enums, attributes, fibers, types |
| Laravel | references/laravel-patterns.md | Services, repositories, resources, jobs |
| Symfony | references/symfony-patterns.md | DI, events, commands, voters |
| Async PHP | references/async-patterns.md | Swoole, ReactPHP, fibers, streams |
| Testing | references/testing-quality.md | PHPUnit, PHPStan, Pest, mocking |
Constraints
MUST DO
- Declare strict types (
declare(strict_types=1)) - Use type hints for all properties, parameters, returns
- Follow PSR-12 coding standard
- Run PHPStan level 9 before delivery
- Use readonly properties where applicable
- Write PHPDoc blocks for complex logic
- Validate all user input with typed requests
- Use dependency injection over global state
MUST NOT DO
- Skip type declarations (no mixed types)
- Use deprecated features or Pydantic V1 patterns
- Store passwords in plain text (use bcrypt/argon2)
- Write SQL queries vulnerable to injection
- Mix business logic with controllers
- Hardcode configuration (use .env)
- Deploy without running tests and static analysis
- Use var_dump in production code
Output Templates
When implementing PHP features, provide:
- Domain models (entities, value objects)
- Service/repository classes
- Controller/API endpoints
- Test files (PHPUnit)
- Brief explanation of architecture decisions
Knowledge Reference
PHP 8.3+, Laravel 11, Symfony 7, Composer, PHPStan, Psalm, PHPUnit, Pest, Eloquent ORM, Doctrine, PSR standards, Swoole, ReactPHP, Redis, MySQL/PostgreSQL, REST/GraphQL APIs
Related Skills
- Fullstack Guardian - Full-stack feature implementation
- FastAPI Expert - Alternative Python framework patterns
- MySQL Expert - Database optimization
When not to use it
- →When skipping type declarations
- →When using deprecated features or Pydantic V1 patterns
- →When mixing business logic with controllers
Limitations
- →It requires strict types to be declared.
- →It mandates type hints for all properties, parameters, and returns.
- →It prohibits the use of deprecated features.
How it compares
This workflow emphasizes modern PHP 8.3+ features, strict typing, and PHPStan level 9 compliance, which differs from older PHP development practices.
Compared to similar skills
php-pro side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| php-pro (this skill) | 0 | 5mo | Review | Advanced |
| php-best-practices | 15 | 1mo | No flags | Beginner |
| laravel-pdf | 11 | 3mo | Review | Beginner |
| laravel-architecture | 7 | 1mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
php-best-practices
HoangNguyen0403
PHP best practices, PSR standards, and code quality guidelines.
laravel-pdf
spatie
Generate PDFs from Blade views or HTML using spatie/laravel-pdf. Covers creating, formatting, saving, downloading, and testing PDFs with the Browsershot, Cloudflare, or DOMPDF driver.
laravel-architecture
HoangNguyen0403
Core architectural standards for scalable Laravel applications.
php-guidelines-from-spatie
freekmurze
Describes PHP and Laravel guidelines provided by Spatie. These rules result in more maintainable, and readable code.
laravel-specialist
Jeffallan
Use when building Laravel 10+ applications requiring Eloquent ORM, API resources, or queue systems. Invoke for Laravel models, Livewire components, Sanctum authentication, Horizon queues.
pennant-development
laravel
Manages feature flags with Laravel Pennant. Activates when creating, checking, or toggling feature flags; showing or hiding features conditionally; implementing A/B testing; working with @feature directive; or when the user mentions feature flags, feature toggles, Pennant, conditional features, rollouts, or gradually enabling features.