A Laravel package that bootstraps your project with preconfigured development tools via a single artisan command.
- PHP ^8.3
- Laravel ^12.0
composer require dev-to-geek/laravel-init --devphp artisan laravel-init:installThis command will automatically install and configure the following tools:
- Laravel Pint -- Automated code formatting (with
pint.jsonconfig). - Larastan -- PHPStan + Larastan static analysis (with
phpstan.neon.distconfig). - Pest PHP -- Modern testing framework with Mockery, Laravel and Livewire plugins.
- Laravel Pail -- Real-time log viewer.
- Rector -- Automated code refactoring (with
rector.phpconfig). - Laravel Boost -- MCP Server for AI-assisted development.
No manual setup is required; everything is ready to use after running the command.
Install only the tools you need instead of the full suite:
# Install only Pint and Larastan
php artisan laravel-init:install --only=pint --only=larastan
# Install only Pest
php artisan laravel-init:install --only=pestValid tool names: pint, larastan, pest, pail, rector, boost.
By default, existing configuration files (pint.json, phpstan.neon.dist, rector.php) are not overwritten. Use --force to replace them:
php artisan laravel-init:install --forceRemove the laravel-init package from your project after all tools have been installed:
php artisan laravel-init:install --remove-meAfter installation, you can add these scripts to your composer.json:
"scripts": {
"test": "@php artisan test",
"test-coverage": "@php artisan test --parallel --coverage",
"analyse": "vendor/bin/phpstan analyse --memory-limit=2G",
"format": "vendor/bin/pint",
"refactor": "vendor/bin/rector"
}Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.