Nuno Maduro's Laravel Starter Kit is a strict Laravel skeleton for those who demand meticulous precision in their projects. This starter kit includes tools to enforce strictness in type coverage, formatting, max static analysis, and more:
Tools like PHPStan, Pest, Rector, Pint, and Prettier are pre-configured to be as strict as possible. E.g: 100% type and code coverage, PHPStan level max, Rector with max privatization, and more...
The starter kit also includes enhanced testing defaults, such as fake sleeps, which prevent stray HTTP requests by default, and freezing time on each test. It also ships with a GitHub workflow that runs the following commands to ensure strictness:
pest --type-coverage --min=100pest --parallel --coverage --exactly=100.0pint --testrector --dry-runnpm run test:lint
Main Features
- Strict Models
- Auto Eager Loading
- Immutable Dates
- Force HTTPS
- Safe Console
- Asset Prefetching
- and more...
Get Started
To create a new project with Nuno's starter kit, use Composer with the following commands:
composer create-project nunomaduro/laravel-starter-kit --prefer-dist example-app cd example-app composer installnpm installnpm run buildcp .env.example .envphp artisan key:generatephp artisan migrate php artisan serve # serve the application...
💻 You can get started with this Laravel Starter Kit on GitHub: nunomaduro/laravel-starter-kit