php-guidelines-from-spatie

Apply Spatie PHP and Laravel coding guidelines to assess PSR compliance.

997|201|Updated May 6, 2014
One-click install
npx skills add https://github.com/freekmurze/dotfiles --skill php-guidelines-from-spatie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-guidelines-from-spatie
Source: https://github.com/freekmurze/dotfiles/tree/main/config/claude/skills/php-guidelines-from-spatie
Command: npx skills add https://github.com/freekmurze/dotfiles --skill php-guidelines-from-spatie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Describes PHP and Laravel guidelines provided by Spatie to drive maintainable, readable code across projects and teams.

Core Features & Use Cases

  • PSR-compliant standards: Encourages PSR-1, PSR-2, and PSR-12 compliance, typed properties, and consistent naming.
  • Documentation discipline: Promotes purposeful docblocks and clear, self-documenting code.
  • Use Case: Onboarding new developers, performing code reviews, and refactoring tasks to ensure consistent code quality.

Quick Start

Apply the php-guidelines-from-spatie rule-set to a PHP file to assess adherence to Laravel conventions and coding standards.

Frequently Asked Questions about php-guidelines-from-spatie

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

FAQPage Schema
What PHP and Laravel coding standards should I apply for consistent code reviews?

Laravel coding standards for consistent code reviews should enforce PSR-1, PSR-2, and PSR-12 compliance, typed properties, proper docblocks, consistent naming, and return types to ensure readability and maintainability across projects.

How do I enforce PSR-12 and typed properties during a Laravel refactoring task?

To enforce PSR-12 and typed properties during Laravel refactoring, apply a codified rule-set assessing adherence to conventions, checking typed properties, purposeful docblocks, and consistent return types to guide automated checks and developer practices.

Does this coding guideline cover docblocks and type declarations for onboarding new developers?

Yes, these coding guidelines cover type declarations and promote purposeful docblocks to create clear, self-documenting code, directly supporting onboarding new developers by establishing consistent PHP and Laravel codebase quality.

What's the best way to assess adherence to Laravel conventions in a PHP file?

The best way to assess adherence to Laravel conventions in a PHP file is applying a Spatie guidelines rule-set to evaluate PSR standards, typed properties, and naming conventions, driving maintainable and readable code quality.

Can I use these Spatie coding guidelines for non-Laravel PHP projects?

Yes, you can use these coding guidelines for non-Laravel PHP projects because the standards enforce universal PSR-1, PSR-2, and PSR-12 compliance, typed properties, and consistent return types alongside specific Laravel conventions.