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.zipInstalls 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.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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| php-guidelines-from-spatie (this skill) | 6 | 7mo | No flags | Beginner |
| php-best-practices | 15 | 2mo | No flags | Beginner |
| laravel-architecture | 7 | 2mo | No flags | Intermediate |
| fluent-validation-migrate-messages | 0 | 3mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by freekmurze
View all by freekmurze →You might also like
php-best-practices
HoangNguyen0403
PHP best practices, PSR standards, and code quality guidelines.
laravel-architecture
HoangNguyen0403
Core architectural standards for scalable Laravel applications.
fluent-validation-migrate-messages
angelgarciasolorzano
Migrate FormRequest `messages(): array` to inline `message:` on fluent chains. Dry-run, then apply. Activates when: user mentions migrate messages, messages array, inline message, remove messages().
php-pro
ngxtm
Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invoke for strict typing, PHPStan level 9, async patterns with Swoole, PSR standards.
php-pro
sickn33
Write idiomatic PHP code with generators, iterators, SPL data structures, and modern OOP features. Use PROACTIVELY for high-performance PHP applications.
code-refactor-php-mediawiki
SemanticMediaWiki
>