PHPackages                             judehashane/seatbelt - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. judehashane/seatbelt

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

judehashane/seatbelt
====================

Opinionated, Production-Ready Laravel Standards—All in One Go

v1.0.0(3d ago)12↓100%MITPHP ^8.3

Since Jul 4Compare

[ Source](https://github.com/Hashane/Seatbelt)[ Packagist](https://packagist.org/packages/judehashane/seatbelt)[ RSS](/packages/judehashane-seatbelt/feed)WikiDiscussions Synced today

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

Seatbelt
========

[](#seatbelt)

[![Tests](https://github.com/Hashane/Seatbelt/actions/workflows/tests.yml/badge.svg)](https://github.com/Hashane/Seatbelt/actions/workflows/tests.yml)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/31a87e1f22b529af58a2615dde6bcd4902061209db5e98adc4b5dff3e99f5f02/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e332d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](composer.json)[![Laravel Version](https://camo.githubusercontent.com/c74823a9fd40dc70f1f2dc172df921f7c5b2b685a2f06c41616bef71556c7b4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d253545313225323025374325323025354531332d4646324432303f6c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](composer.json)[![Buckle Up](.github/badges/buckle-up.svg)](.github/badges/buckle-up.svg)

Opinionated, production-ready Laravel standards — active the moment it's installed, no config publishing or provider wiring required. Also bootstraps a fresh project's tooling (Pint, PHPStan/Larastan, Rector) via a single install command.

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

[](#installation)

```
composer require judehashane/seatbelt
```

To see or change the defaults, publish the config:

```
php artisan vendor:publish --tag=seatbelt-config
```

What it does
------------

[](#what-it-does)

Each row is its own `Configuration` class, listed in `config/seatbelt.php`. Remove an entry to disable it entirely, or keep it and use its config key to toggle it. All are on by default.

ConfigurationActive whenConfig key(s)What it does`ProhibitDestructiveCommands`production`prohibit_destructive_commands`Blocks `db:wipe`, `migrate:fresh/reset/refresh/rollback` — even with `--force`.`DefaultPasswordRules`production`password.*`Strong `Password::defaults()` rule — length, character classes, breach check.`StrictModels`outside production`enforce_strict_models``Model::shouldBeStrict()` — throws on lazy loading, mass-assignment, and missing-attribute violations.`ForceHttpsScheme`production`force_https_scheme``URL::forceScheme('https')` for all generated URLs.`DatabaseMonitoring`outside production`database.*`Logs a warning when a query exceeds the configured time budget.`AutomaticEagerLoading`production`automatically_eager_load_relationships``Model::automaticallyEagerLoadRelationships()` — auto-resolves N+1s that slip past `StrictModels` in dev.`ViteAggressivePrefetching`production`vite_aggressive_prefetching``Vite::useAggressivePrefetching()` — prefetches built JS/CSS in the background.`PreventStrayRequests`test suite only`prevent_stray_requests``Http::preventStrayRequests()` — un-faked HTTP calls throw.`PreventStrayProcesses`test suite only`prevent_stray_processes``Process::preventStrayProcesses()` — un-faked shell calls throw once something fakes.`QueueFailedJobLogging`production`queue_failed_job_logging``Queue::failing()` — logs connection, queue, job class, and exception on failure.`ImmutableDates`always`immutable_dates``Date::use(CarbonImmutable::class)` — dates are immutable everywhere.A few are gated in opposite directions on purpose: `StrictModels` and `DatabaseMonitoring` are noisy-by-design dev feedback, so they're off in production; `ProhibitDestructiveCommands`, `ForceHttpsScheme`, and `AutomaticEagerLoading` are production safety nets that would just get in the way locally; `PreventStrayRequests`/`PreventStrayProcesses` are test-only, since enabling them elsewhere would break real requests and shell commands.

Tooling bootstrap
-----------------

[](#tooling-bootstrap)

```
php artisan seatbelt:install
```

Publishes `config/seatbelt.php`, `pint.json`, `phpstan.neon`, and `rector.php`. These are config files, not the tools — install what they expect:

```
composer require --dev larastan/larastan mrpunyapal/peststan rector/rector driftingly/rector-laravel mrpunyapal/rector-pest
```

`phpstan.neon`/`rector.php` reference Seatbelt's rules live from `vendor/judehashane/seatbelt`, so `composer update` picks up rule changes with no re-publishing. `pint.json` is a static copy — re-publish with `--force` if it changes.

```
php artisan seatbelt:install --force
```

Testing
-------

[](#testing)

```
composer test       # Pest only
composer quality     # Rector dry-run, Pint, PHPStan, Pest
```

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

[](#contributing)

PRs welcome — see [CONTRIBUTING.md](CONTRIBUTING.md).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance99

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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 ~1 days

Total

3

Last Release

3d ago

Major Versions

v0.2.0 → v1.0.02026-07-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12775167?v=4)[Jude Hashane](/maintainers/Hashane)[@Hashane](https://github.com/Hashane)

---

Tags

standardsPHPStanlaravelpackageboilerplaterectorPint

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/judehashane-seatbelt/health.svg)

```
[![Health](https://phpackages.com/badges/judehashane-seatbelt/health.svg)](https://phpackages.com/packages/judehashane-seatbelt)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.7k](/packages/larastan-larastan)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[calebdw/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

15118.7k4](/packages/calebdw-larastan)[api-platform/laravel

API Platform support for Laravel

58173.9k16](/packages/api-platform-laravel)

PHPackages © 2026

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