Spatie Laravel Php
Opinionated Laravel and PHP coding standards for controllers, models, routes, Blade, and tests, aligned with PSR-12.
- CCM score
- 66 of 100
- skills.sh installs
- 1.5K
- GitHub stars
- 101
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers Laravel and PHP code, Blade templates, routes, config, validation, migrations, and tests, but excludes JS, CSS, and infrastructure
- Includes a core rules summary (typed properties, early returns, promoted constructors) plus a do and don't list
- Enforces kebab-case URLs, camelCase route names, plural controller names, and
config()overenv()outside config files - Designed for Laravel projects where generated or reviewed code should match Spatie's house conventions
Install
$ npx -y skills add spatie/guidelines-skills --skill spatie-laravel-php -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Spatie Laravel & PHP Guidelines
Overview
Apply Spatie's Laravel and PHP guidelines to keep code style consistent and Laravel-native.
When to Activate
- Activate this skill for any Laravel or PHP coding work, even if the user does not explicitly mention Spatie.
- Activate this skill when asked to generate, edit, format, refactor, review, or align Laravel/PHP code.
- Activate this skill when working on
.phpor.blade.phpfiles, routes, controllers, models, config, validation, migrations, or tests.
Scope
- In scope:
.php,.blade.php, Laravel conventions (routes, controllers, config, validation, migrations, tests). - Out of scope: JS/TS, CSS, infrastructure, database schema design, non-Laravel frameworks.
Workflow
- Identify the artifact (controller, route, config, model, Blade, test, etc.).
- Read
references/spatie-laravel-php-guidelines.mdand focus on the relevant sections. - Apply the core Laravel principle first, then PHP standards, then section-specific rules.
- If a rule conflicts with existing project conventions, follow Laravel conventions and keep changes consistent.
Details
- Repository
- github.com/spatie/guidelines-skills
- Categories
- PHP & Laravel, Code Review & Quality
- First seen
- Jun 3, 2026
Questions
What is spatie-laravel-php?
spatie-laravel-php is an agent skill listed on Claude Marketplaces in the PHP & Laravel category. Its page on Claude Marketplaces links to the spatie-laravel-php source on GitHub.
How do I install spatie-laravel-php?
Run npx -y skills add spatie/guidelines-skills --skill spatie-laravel-php -y in a project to install spatie-laravel-php. After that, the agent can use spatie-laravel-php in that project.
Which category is spatie-laravel-php in?
spatie-laravel-php is in the PHP & Laravel category on Claude Marketplaces. On that category page, spatie-laravel-php ranks in the top 50.
Where is the source code of spatie-laravel-php?
The source code of spatie-laravel-php is on GitHub at https://github.com/spatie/guidelines-skills. The spatie account on GitHub publishes spatie-laravel-php.
More from spatie/guidelines-skills
All 4Similar to Spatie Laravel Php
More PHP & Laravellaravelmindrally/skills883 installsExpert guidance for Laravel PHP work covering MVC structure, Eloquent, validation, testing, and performance.
laravel-best-practicesasyrafhussin/agent-skills2.5K installsLaravel 13 conventions covering architecture, Eloquent, validation, and security with 31 rules across 7 categories.
laravel-developmentmindrally/skills974 installsExpert Laravel guidance that applies SOLID principles, PSR-12 style, and Laravel conventions to PHP code.
php-best-practicesasyrafhussin/agent-skills4K installsPHP 8.x modern patterns, PSR standards, and SOLID rules for reviewing and auditing PHP code.