PHPackages                             spatie/boost-spatie-guidelines - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. spatie/boost-spatie-guidelines

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

spatie/boost-spatie-guidelines
==============================

Spatie's Laravel &amp; PHP coding guidelines for Laravel Boost

1.1.0(2mo ago)8455.5k↑55.1%24MITBladePHP ^8.2CI failing

Since Jan 26Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/spatie/boost-spatie-guidelines)[ Packagist](https://packagist.org/packages/spatie/boost-spatie-guidelines)[ Docs](https://github.com/spatie/boost-spatie-guidelines)[ RSS](/packages/spatie-boost-spatie-guidelines/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (4)

Spatie Guidelines for Laravel Boost
===================================

[](#spatie-guidelines-for-laravel-boost)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9df752895adc8edb5e8d3bcc39597cea53bd8548e4612af7a613be242752d482/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f626f6f73742d7370617469652d67756964656c696e65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/boost-spatie-guidelines)[![Total Downloads](https://camo.githubusercontent.com/8702a2b183c8f741af3be2c328392c4c96b79189f2cdc256401b1cbe5625a868/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f626f6f73742d7370617469652d67756964656c696e65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/boost-spatie-guidelines)

Bring Spatie's battle-tested Laravel &amp; PHP coding guidelines to your AI-assisted development workflow with Laravel Boost.

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require spatie/boost-spatie-guidelines --dev
```

Then install the guidelines with Boost:

```
php artisan boost:install
```

[![](.github/boost-install.jpg)](.github/boost-install.jpg)

Select the Spatie guidelines from the list and they'll be installed to `.ai/guidelines/boost-spatie-guidelines/`.

What's Included
---------------

[](#whats-included)

This package provides AI-optimized versions of Spatie's Laravel &amp; PHP coding standards, including:

- PSR compliance (PSR-1, PSR-2, PSR-12)
- Type declarations and nullable syntax
- Class structure and property promotion
- Control flow patterns (happy path, early returns)
- Laravel conventions (routes, controllers, configuration)
- Naming conventions (camelCase, kebab-case, snake\_case)
- Blade templates and validation
- Testing best practices

These guidelines help AI assistants like Claude Code generate code that follows Spatie's proven standards.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/3c2c1f91c14d7002f9ef0945c65c89c77c385125e574462999c46e06378caca6/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f626f6f73742d7370617469652d67756964656c696e65732e6a70673f743d31)](https://spatie.be/github-ad-click/boost-spatie-guidelines)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Usage
-----

[](#usage)

Once installed, AI assistants using Laravel Boost will automatically reference these guidelines when generating code. No additional configuration needed!

Keeping Guidelines Up to Date
-----------------------------

[](#keeping-guidelines-up-to-date)

Re-run the Boost installer after updating the package to refresh guidelines:

```
composer update spatie/boost-spatie-guidelines
php artisan boost:update
```

Full Guidelines
---------------

[](#full-guidelines)

View the complete, human-readable guidelines at [spatie.be/guidelines](https://spatie.be/guidelines).

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for recent changes.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Postcardware
------------

[](#postcardware)

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.

We publish all received postcards [on our company website](https://spatie.be/open-source/postcards).

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance86

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Total

3

Last Release

74d ago

Major Versions

0.0.1 → 1.1.02026-03-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (9 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![pushpak1300](https://avatars.githubusercontent.com/u/31663512?v=4)](https://github.com/pushpak1300 "pushpak1300 (1 commits)")

---

Tags

boostguidelinesspatiespatielaravelcoding-standardsguidelinesboost

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spatie-boost-spatie-guidelines/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-boost-spatie-guidelines/health.svg)](https://phpackages.com/packages/spatie-boost-spatie-guidelines)
```

###  Alternatives

[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[spatie/laravel-feed

Generate rss feeds

9743.6M28](/packages/spatie-laravel-feed)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[gonetone/laravel-boost-windsurf-extension

Laravel Boost extension package that provides Windsurf editor and Windsurf JetBrains plugin integration.

239.1k](/packages/gonetone-laravel-boost-windsurf-extension)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
