freekmurze avatar

Php Guidelines From Spatie

Spatie's PHP guidelines baked into a Claude skill. You get opinionated rules on everything from "happy path last" control flow to why you should split compound if statements with && into nested ifs. Strong conventions here: camelCase for routes, kebab-case for URLs, always import classes in docblocks instead of fully qualified names, and never use else when you can early return. The documentation is thorough on Laravel specifics like controller naming, migration structure, and Blade formatting. If you've ever worked in a Laravel codebase that felt consistent and readable, there's a good chance it followed something close to these rules. Worth adopting wholesale or cherry-picking the parts that fix your team's messiest habits.

skills.sh installs
157
GitHub stars
1K
last updated
Aug 21, 2026

Install

$ npx -y skills add freekmurze/dotfiles --skill php-guidelines-from-spatie --agent claude-code

Installs into .claude/skills of the current project.

Files

Spatie's PHP guidelines baked into a Claude skill. You get opinionated rules on everything from "happy path last" control flow to why you should split compound if statements with && into nested ifs. Strong conventions here: camelCase for routes, kebab-case for URLs, always import classes in docblocks instead of fully qualified names, and never use else when you can early return. The documentation is thorough on Laravel specifics like controller naming, migration structure, and Blade formatting. If you've ever worked in a Laravel codebase that felt consistent and readable, there's a good chance it followed something close to these rules. Worth adopting wholesale or cherry-picking the parts that fix your team's messiest habits.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/freekmurze/dotfiles
Category
PHP & Laravel
First seen
Jun 3, 2026
1affaan-m avatarlaravel-securityaffaan-m/eccLaravel security best practices — authentication, authorization, Eloquent safety, CSRF, XSS prevention, API security, and secure deployment configurations.6.6Kskills.sh installs
2affaan-m avatarlaravel-patternsaffaan-m/eccLaravel architecture patterns, routing/controllers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps.6.1Kskills.sh installs
3affaan-m avatarlaravel-plugin-discoveryaffaan-m/eccDiscover and evaluate Laravel packages via LaraPlugins.io MCP. Use when the user wants to find plugins, check package health, or assess Laravel/PHP compatibilit5.4Kskills.sh installs
4giuseppe-trisciuoglio avataraws-lambda-php-integrationgiuseppe-trisciuoglio/developer-kitProvides AWS Lambda integration patterns for PHP with Symfony using the Bref framework. Creates Lambda handler classes, configures runtime layers, sets up SQS/S3.7Kskills.sh installs
5asyrafhussin avatarlaravel-database-optimizationasyrafhussin/agent-skillsLaravel database optimization patterns. Use when writing Eloquent queries, creating migrations, configuring caching, debugging slow queries, or optimizing datab1.1Kskills.sh installs
6asyrafhussin avatarlaravel-owasp-securityasyrafhussin/agent-skillsOWASP Top 10 security audit and secure coding guidelines for Laravel + React/Inertia.js applications. Use when auditing for vulnerabilities ("run OWASP audit", 1.1Kskills.sh installs