PHPackages                             paolobellini/laravel-preset - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. paolobellini/laravel-preset

ActiveLibrary[Testing &amp; Quality](/categories/testing)

paolobellini/laravel-preset
===========================

Opinionated Laravel preset: dev tooling, code conventions and AI agent guidelines scaffolded into new projects.

v1.0.0(1mo ago)02↓50%MITPHPPHP ^8.3CI failing

Since Jun 28Pushed 1mo agoCompare

[ Source](https://github.com/paolobellini/laravel-preset)[ Packagist](https://packagist.org/packages/paolobellini/laravel-preset)[ RSS](/packages/paolobellini-laravel-preset/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

laravel-preset
==============

[](#laravel-preset)

Opinionated personal Laravel preset. One command scaffolds the dev tooling, code conventions and CI used across new projects (on top of the Laravel + Vue starter kit, so anything the starter kit already ships is not duplicated).

Install
-------

[](#install)

```
composer require paolobellini/laravel-preset --dev
php artisan preset:install
```

`preset:install` runs `composer update` for you when the `scripts` group is selected — using `./vendor/bin/sail composer update` when Laravel Sail is installed, otherwise plain `composer update` (pass `--no-install` to skip). Then generate helpers:

```
composer ide-helper
```

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

[](#what-it-does)

`php artisan preset:install` is interactive — pick any of the four groups:

### `configs` — lint / format / static analysis

[](#configs--lint--format--static-analysis)

Copies the configs not already in the starter kit:

FileTool`pint.json`Laravel Pint (strict types, final classes, phpdoc-only types)`phpstan.neon`Larastan level 7`rector.php`Rector + rector-laravel sets`config/essentials.php`nunomaduro/essentials — custom overrides (`Unguard => true`, inverse of the package default)### `ai` — conventions

[](#ai--conventions)

Copies the `.ai/` directory only:

- `.ai/guidelines/personal/*` — precedence, comments, commits, controllers (action pattern), testing, workflow.
- `.ai/mcp/mcp.json`.

### `scripts` — composer quality scripts + dev deps

[](#scripts--composer-quality-scripts--dev-deps)

Merges into `composer.json` without clobbering existing keys.

Composer `require-dev` added (skips anything already present): `barryvdh/laravel-ide-helper`, `fruitcake/laravel-debugbar`, `larastan/larastan`, `laravel/pint`, `laravel/boost`, `laravel/pail`, `rector/rector`, `driftingly/rector-laravel`, `pestphp/pest` + `pest-plugin-type-coverage`. `nunomaduro/essentials` goes into `require`. `nunomaduro/collision` and `pestphp/pest-plugin-laravel` are **not** added — they already ship with the starter kit.

Composer scripts added: `lint`, `analyse`, `refactor`, `type`, `coverage`, `tests`, `check:lint`, `check:refactor`, `php-checks`, `node-checks`, `ide-helper`, `cleanup`.

- `composer cleanup` → Pint, Pest (90% coverage + type-coverage), PHPStan, Rector dry-run.
- `composer ide-helper` → `ide-helper:generate` + `ide-helper:models -RW`.

npm deps and scripts are **not** touched — the starter kit already provides ESLint, Prettier, TypeScript and their `lint`/`format`/`types:check` scripts.

### `github` — CI workflows

[](#github--ci-workflows)

First removes the starter-kit `lint.yml` + `tests.yml` (superseded), then copies caller workflows that reference the reusable workflows / composite actions in [`paolobellini/bellini.one`](https://github.com/paolobellini/bellini.one):

- `.github/workflows/analyse.yml` — on push to `main` / any PR, calls `laravel-lint.yml@v1.0` (pint + rector + phpstan + node-checks).
- `.github/workflows/tests.yml` — on push to `main` / any PR, calls `laravel-test.yml@v1.0`.
- `.github/workflows/security.yml` — on PR targeting `staging`, runs the `actions/general/security@v1.0` Trivy scan.

Flags
-----

[](#flags)

```
php artisan preset:install --configs --ai --scripts --github   # pick groups
php artisan preset:install --force                             # overwrite existing files / deps
php artisan preset:install --no-install                        # skip the auto composer update
```

Without flags in a non-interactive shell, all groups install.

Conventions in brief
--------------------

[](#conventions-in-brief)

- **Actions pattern**: thin controllers — validate (Form Request) → bind → `$action->handle(...)` → Resource. One `final` action per write, single `handle()`.
- **No explanatory comments**; PHPDoc only (array shapes / generics).
- **Commits**: `type(scope): message`, all lowercase, subject only.
- **Tests**: Pest, ≥90% coverage. Unit tests assert the object; feature tests assert the database. `tests/Feature/{Model}/{Method}Test.php`.
- **PHP**: strict types, `final` classes, constructor property promotion, explicit return types, curly braces always.

License
-------

[](#license)

MIT

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~0 days

Total

2

Last Release

45d ago

Major Versions

v0.1.0 → v1.0.02026-06-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fb74719ea556a2d0a90616a9894da74e9f62f85cd9e4120b01651e02ede58f4?d=identicon)[paolobellini](/maintainers/paolobellini)

---

Top Contributors

[![paolobellini](https://avatars.githubusercontent.com/u/112547894?v=4)](https://github.com/paolobellini "paolobellini (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

pestlaravelscaffoldingrectorpresetPintconventions

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/paolobellini-laravel-preset/health.svg)

```
[![Health](https://phpackages.com/badges/paolobellini-laravel-preset/health.svg)](https://phpackages.com/packages/paolobellini-laravel-preset)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M305](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20433.0M1.8k](/packages/illuminate-queue)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

5031.3k](/packages/erag-laravel-lang-sync-inertia)[moonshine/moonshine

Laravel administration panel

1.3k268.2k88](/packages/moonshine-moonshine)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

265192.2k1](/packages/erag-laravel-disposable-email)[calebdw/larastan

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

16132.2k4](/packages/calebdw-larastan)

PHPackages © 2026

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