php-pro

Refactor and optimize PHP applications using Laravel, Symfony, and PSR standards.

1|1|Updated Aug 5, 2025
One-click install
npx skills add https://github.com/slantview/claude --skill php-pro-slantview
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-pro
Source: https://github.com/slantview/claude/tree/main/skills/php-pro
Command: npx skills add https://github.com/slantview/claude --skill php-pro-slantview

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires composer, phpunit, pest, phpstan, rector, php-cs-fixer, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for expert-level assistance in developing, refactoring, and optimizing complex PHP applications, ensuring adherence to modern standards and best practices.

Core Features & Use Cases

  • Modern PHP Development: Leverages PHP 8+ features, strict typing, and SOLID principles for robust code.
  • Framework Expertise: Deep knowledge of Laravel and Symfony for building scalable applications.
  • API Development: Specializes in creating RESTful and GraphQL APIs.
  • Performance Optimization: Implements advanced caching, query optimization, and profiling techniques.
  • Use Case: Refactor a legacy PHP codebase to adopt modern OOP patterns and improve performance, or build a new microservice using Laravel with comprehensive testing and security.

Quick Start

Use the php-pro skill to create a new Laravel service provider for user authentication.

Frequently Asked Questions about php-pro

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor legacy PHP code to use modern OOP patterns?

Refactoring legacy PHP code to modern OOP patterns involves leveraging PHP 8+ features, strict typing, and SOLID principles. You can automate architectural improvements and enforce standards using tools like Rector and php-cs-fixer.

What is the best way to build a RESTful API in Laravel or Symfony?

Building a RESTful API in Laravel or Symfony is best achieved by applying framework routing and controller patterns alongside object-oriented design. Comprehensive testing using PHPUnit or Pest ensures endpoint reliability and strict standards.

How do I optimize PHP application performance with advanced caching?

Optimizing PHP application performance with advanced caching requires implementing query optimization and profiling techniques. Analyzing bottlenecks in Laravel or Symfony allows targeted caching strategies to reduce response times.

Can I use PHPUnit and Pest for testing enterprise PHP microservices?

Yes, you can use PHPUnit and Pest for testing enterprise PHP microservices. They provide robust frameworks to validate complex application logic in Laravel or Symfony, ensuring high code quality and preventing regressions.

Does static analysis with PHPStan work well with Symfony and Laravel?

Static analysis with PHPStan works well with Symfony and Laravel to enforce strict typing and catch runtime errors early. Integrating PHPStan into your workflow ensures robust code architecture and adherence to PSR standards.

Why does my PHP composer dependency management break during refactoring?

PHP composer dependency management often breaks during refactoring due to conflicting package constraints or outdated autoloading maps. Utilizing Composer properly alongside Rector ensures dependency alignment and smooth code modernization.