Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Boost Spatie Guidelines

Boost Spatie Guidelines Laravel Package

spatie/boost-spatie-guidelines

AI-optimized Spatie coding guidelines for Laravel Boost. Installs battle-tested Laravel & PHP standards into your .ai/guidelines folder so AI assistants generate PSR-compliant, convention-driven code (types, naming, control flow, testing) automatically.

View on GitHub
Deep Wiki
Context7

Spatie's Laravel & PHP coding guidelines for Laravel Boost

Frequently asked questions about Boost Spatie Guidelines
How do I install spatie/boost-spatie-guidelines in my Laravel project?
Run `composer require spatie/boost-spatie-guidelines --dev` and then execute `php artisan boost:install` to select Spatie’s guidelines during setup. The package installs as a dev dependency and integrates seamlessly with Laravel Boost.
Does this package work with Laravel 10+ only, or does it support older versions?
This package requires **Laravel Boost v2+**, which officially supports Laravel 10+. Check Boost’s documentation for exact version compatibility, as older Laravel versions may not be fully supported.
Will these guidelines conflict with my existing PHP-CS-Fixer or Psalm rules?
The package enforces Spatie’s conventions (PSR-1/2/12 + Laravel-specific rules) but won’t override your existing tooling. Ensure your linters/formatters align with Spatie’s standards to avoid conflicts during CI checks.
Can I use this package without Laravel Boost?
No, this package is **exclusively designed for Laravel Boost** and requires Boost’s AI workflow. If you’re not using Boost, consider standalone tools like PHP-CS-Fixer or custom PSR-12 rules instead.
How does this package enforce coding standards? Does it run linting checks?
This package is **read-only**—it provides AI-optimized guidelines for Boost to generate compliant code. It doesn’t run runtime checks or linting; you’ll need tools like PHPStan or GitHub Actions for enforcement.
Are there any Spatie-specific naming conventions I should know about (e.g., Blade, controllers)?
Yes. The guidelines enforce Spatie’s Laravel conventions, such as kebab-case for routes (`/api/users`), snake_case for database columns, and controller methods following RESTful patterns (e.g., `store()`, `update()`).
What if my team has custom coding standards that differ from Spatie’s?
You can’t override individual rules via this package, but you can **audit conflicts** before adoption. For critical deviations, consider forking the guidelines or using Boost’s custom prompt overrides.
Does this package support testing best practices (e.g., PHPUnit, Pest)?
Yes. The guidelines include Spatie’s testing conventions, such as method naming (`test_user_can_create_post`), assertion styles, and fixture organization. AI-generated tests will follow these patterns by default.
How do I update the guidelines after a new version is released?
Run `composer update spatie/boost-spatie-guidelines` followed by `php artisan boost:update` to refresh the guidelines in your `.ai/guidelines/` directory. This ensures AI-generated code stays aligned with the latest standards.
Is this package safe for production? Will it slow down my app?
This is a **dev-only package** with no runtime impact. It only influences AI-generated code during development. No database migrations, configurations, or performance overhead are introduced.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport