spatie-laravel-php

Enforce PSR-12 coding standards in Laravel and PHP files.

1|Updated May 24, 2026
One-click install
npx skills add https://github.com/PTKDrake/FIT-vmu --skill spatie-laravel-php-ptkdrake
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spatie-laravel-php
Source: https://github.com/PTKDrake/FIT-vmu/tree/main/.ai/skills/spatie-laravel-php
Command: npx skills add https://github.com/PTKDrake/FIT-vmu --skill spatie-laravel-php-ptkdrake

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of ensuring consistent coding standards, conventions, and PSR compliance in Laravel and PHP projects, which is crucial for maintainability and readability.

Core Features & Use Cases

  • Code Standards Enforcement: Applies PSR-1, PSR-2, and PSR-12 standards across Laravel and PHP codebases.
  • Refactoring Assistance: Helps in refactoring code to adhere to Laravel conventions and best practices.
  • Use Case: When developing or reviewing a Laravel or PHP project, activate this Skill to automatically align your code with established standards.

Quick Start

Use the spatie-laravel-php skill to check and apply coding standards to the 'app/Http/Controllers' directory.

Frequently Asked Questions about spatie-laravel-php

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

FAQPage Schema
How do I enforce PSR-12 coding standards in a Laravel project?

You can enforce PSR-12 standards by applying Spatie's guidelines to check and align any .php file, including controllers, models, routes, and migrations for consistent code quality.

What is the best way to refactor PHP code to adhere to Laravel conventions?

The best way to refactor PHP code to Laravel conventions is to apply established coding standards like PSR-1, PSR-2, and PSR-12 across your codebase to improve maintainability and readability.

Can I use this to check coding standards for specific Laravel directories like controllers?

Yes, you can check coding standards for specific directories by targeting paths like 'app/Http/Controllers' to automatically align your code with established conventions.

Does this approach support all PHP file types in a typical Laravel application?

Yes, this approach supports any .php file in a Laravel application, including routes, controllers, models, config files, validation rules, database migrations, and tests.

Why should I use Spatie guidelines for PHP code quality over generic standards?

You should use Spatie guidelines for PHP code quality because they specifically enforce established conventions like PSR-12 while adding Laravel-specific best practices for better project maintainability.