PH

php-guidelines-from-spatie

Applies Spatie’s coding standards for PHP and Laravel to improve code readability and maintainability.

Install

mkdir -p .claude/skills/php-guidelines-from-spatie && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1610" && unzip -o skill.zip -d .claude/skills/php-guidelines-from-spatie && rm skill.zip

Installs to .claude/skills/php-guidelines-from-spatie

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Describes PHP and Laravel guidelines provided by Spatie. These rules result in more maintainable, and readable code.
116 charsno explicit “when” trigger
Beginner

Key capabilities

  • →Enforce PSR-1, PSR-2, PSR-12 coding standards
  • →Implement short nullable type syntax
  • →Standardize docblock generics for collections
  • →Enforce early return patterns in control flow

How it works

Applies a predefined checklist of PSR standards and Laravel-centric coding conventions for PHP class structures and type safety.

Inputs & outputs

You give it
PHP source file or class definition
You get back
Refactored code adhering to Spatie standards

When to use php-guidelines-from-spatie

  • →Standardizing PHP coding style
  • →Applying Laravel best practices
  • →Refactoring legacy PHP code
  • →Enforcing type declaration standards

About php-guidelines-from-spatie

Enforces PSR coding standards, type declaration best practices, and Laravel-specific conventions. It provides clear rules on class structure, docblock usage, and generic types to standardize team output.

Describes PHP and Laravel guidelines provided by Spatie. These rules result in more maintainable, and readable code.

When not to use it

  • →Non-PHP codebases
  • →Projects using conflicting legacy frameworks

Limitations

  • →Rules are subjective to Spatie guidelines
  • →Does not automatically fix deep logical bugs

How it compares

Standardizes the stylistic and structural implementation details of PHP code according to widely recognized community patterns.

Compared to similar skills

php-guidelines-from-spatie side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
php-guidelines-from-spatie (this skill)67moNo flagsBeginner
php-best-practices152moNo flagsBeginner
laravel-architecture72moNo flagsIntermediate
fluent-validation-migrate-messages03moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry