php-expert

Guide modern PHP development with Laravel, Composer, and PHP 8+ features.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/JonathanMitchell1234/Stock-Swing-Trading-Bot --skill php-expert-jonathanmitchell1234
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-expert
Source: https://github.com/JonathanMitchell1234/Stock-Swing-Trading-Bot/tree/main/.agents/skills/php-expert
Command: npx skills add https://github.com/JonathanMitchell1234/Stock-Swing-Trading-Bot --skill php-expert-jonathanmitchell1234

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance and best practices for modern PHP development, enabling developers to build robust and efficient applications.

Core Features & Use Cases

  • PHP 8+ Features: Learn about new syntax and capabilities like union types, named arguments, and attributes.
  • Laravel Framework: Understand core components like Models, Controllers, and Migrations for building web applications.
  • Testing: Implement effective unit and feature tests using PHPUnit.
  • Use Case: A developer needs to refactor an existing PHP application to leverage the latest PHP 8 features and improve code quality using Laravel best practices.

Quick Start

Use the php-expert skill to generate a basic Laravel controller for managing posts.

Frequently Asked Questions about php-expert

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

FAQPage Schema
How do I implement modern PHP 8+ features like union types and named arguments?

Modern PHP 8+ features like union types, named arguments, and attributes provide enhanced type safety and cleaner syntax. You can leverage these capabilities alongside object-oriented principles to build robust applications with strict type adherence.

What's the best way to structure Laravel controllers and Eloquent queries?

Structuring Laravel controllers and Eloquent queries involves adhering to PSR standards, utilizing form requests for validation, and implementing API resources. This approach ensures clean separation of concerns and maintainable code.

How do I write PHPUnit tests for Laravel API endpoints and jobs?

Writing PHPUnit tests for Laravel API endpoints and jobs involves implementing effective unit and feature tests. You ensure code reliability by testing core components like models, controllers, and events against expected behaviors.

Can I use Composer dependency management to refactor an existing PHP application?

Yes, you can use Composer dependency management to refactor an existing PHP application. It helps manage packages efficiently while you update code to leverage PHP 8 features and Laravel best practices for improved quality.

Does modern PHP development require strict adherence to PSR standards and dependency injection?

Modern PHP development strongly focuses on object-oriented principles, type safety, and dependency injection. Adhering to PSR standards ensures consistent code formatting and structure, which is essential for maintaining robust applications.