ngiraud / laravel-starter
An opinionated starter to launch after creating a fresh Laravel application
Fund package maintenance!
Nicolas Giraud
Requires
- php: ^8.4
- illuminate/contracts: ^12.0
- laravel/prompts: ^0.3.6
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- laravel/sail: ^1.44
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^2.0||^3.0
- pestphp/pest-plugin-arch: ^2.5||^3.0
- pestphp/pest-plugin-laravel: ^2.0||^3.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
- rector/rector: ^2.1
README
This package automates the setup of a fresh Laravel application by installing and configuring the packages and tools you commonly use in your projects.
It configures Docker Compose with Laravel Sail, installs your preferred packages (Telescope, Horizon, Filament, etc.), sets up Composer scripts for development, and configures your environment according to your preferences (locale, database, services).
Installation
Install the package in your fresh Laravel application:
composer require ngiraud/laravel-starter
Usage
After creating a new Laravel application with a starter kit, simply run:
php artisan starter:install
The command will guide you interactively to:
- Configure environment: application name, locale (fr/en), database settings
- Choose Docker services: MySQL, Redis, MinIO, etc.
- Install Composer packages: Laravel Telescope, Horizon, Filament, Larastan, Rector, etc.
- Setup development scripts:
composer dev
,composer test
,composer lint
- Publish configuration files: pint.json, translation files
- Publish custom AppServiceProvider
- Add a command to create an Action class
Available packages
- Laravel Telescope - Debugging and monitoring
- Laravel Horizon - Redis queue management
- Filament - Admin panel interface
- Larastan - Static analysis with PHPStan
- Rector - Automated refactoring
- Laravel Backup - Automated backups
- Paratest - Parallel testing
- Laravel Nightwatch - Monitoring application
Added Composer scripts
composer dev # Start all development services (logs, vite, queue) composer dev:ssr # Version with Inertia SSR composer test # Run tests with coverage composer lint # Code formatting with Pint composer refactor # Refactoring with Rector
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.