
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-codeInstalls 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 GitHubSponsors
Details
- Repository
- github.com/freekmurze/dotfiles
- Category
- PHP & Laravel
- First seen
- Jun 3, 2026