Skip to content
spatie avatar

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
View on GitHub

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() over env() 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 -y

Installs 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 .php or .blade.php files, 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

  1. Identify the artifact (controller, route, config, model, Blade, test, etc.).
  2. Read references/spatie-laravel-php-guidelines.md and focus on the relevant sections.
  3. Apply the core Laravel principle first, then PHP standards, then section-specific rules.
  4. 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 4

Similar to Spatie Laravel Php

More PHP & Laravel