What problem does it solve?
This Skill provides expert-level assistance for building robust, modern, and high-performance PHP applications, ensuring adherence to best practices and advanced language features.
Core Features & Use Cases
- Modern PHP Development: Leverage PHP 8.3+ features like strict typing, enums, readonly properties, attributes, and fibers.
- Framework Expertise: Implement complex logic within Laravel and Symfony applications, following established patterns like services, repositories, and API resources.
- Asynchronous Operations: Design and implement concurrent and non-blocking code using Swoole, ReactPHP, or native PHP Fibers.
- Code Quality & Security: Ensure code quality through strict typing, PHPStan compliance, and adherence to PSR standards, while implementing robust security measures.
- Use Case: Refactor a legacy PHP codebase to utilize modern type hinting, enums, and readonly properties, improving maintainability and reducing bugs.
Quick Start
Write a strict-typed PHP function that calculates the total price including tax using modern PHP features.