karimalik / laravel-fast-setup
Automates repetitive Laravel project setup tasks: package installation, environment generation, and folder structure scaffolding.
v1.0.0
2026-06-13 19:04 UTC
Requires
- php: ^8.3|^8.4
- illuminate/support: ^12.0|^13.0
- laravel/prompts: ^0.3
Requires (Dev)
- mockery/mockery: ^1.6
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.0
This package is auto-updated.
Last update: 2026-06-13 19:51:35 UTC
README
███████╗ █████╗ ███████╗████████╗ ███████╗███████╗████████╗██╗ ██╗██████╗
██╔════╝██╔══██╗██╔════╝╚══██╔══╝ ██╔════╝██╔════╝╚══██╔══╝██║ ██║██╔══██╗
█████╗ ███████║███████╗ ██║ ███████╗█████╗ ██║ ██║ ██║██████╔╝
██╔══╝ ██╔══██║╚════██║ ██║ ╚════██║██╔══╝ ██║ ██║ ██║██╔═══╝
██║ ██║ ██║███████║ ██║ ███████║███████╗ ██║ ╚██████╔╝██║
╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝
Laravel Fast Setup — by Karim Kompissi
Automates the most repetitive tasks when starting a new Laravel project — package installation, .env generation, and folder scaffolding — through an interactive CLI wizard.
Installation
composer require karimalik/laravel-fast-setup php artisan vendor:publish --tag=fast-setup-config
Usage
Full wizard
php artisan fast:setup
Guides you through all three steps interactively.
Individual commands
php artisan fast:install-packages # Select and install packages php artisan fast:generate-structure # Scaffold folder architecture php artisan fast:generate-env # Generate .env files per environment
Options available on all commands
| Option | Description |
|---|---|
--dry-run |
Preview changes without applying anything |
--preset=name |
Run a named preset non-interactively (fast:setup only) |
--skip-interaction |
Skip top-level confirmation prompts (fast:setup only) |
Presets
Run a full project setup in one command:
php artisan fast:setup --preset=api # Sanctum, Horizon, Socialite, Backup — api structure php artisan fast:setup --preset=standard # Debugbar, Telescope, Livewire, Filament — standard structure php artisan fast:setup --preset=ddd # Permission, Activitylog, Horizon, Backup — ddd structure
Define your own in config/fast-setup.php:
'presets' => [ 'my-preset' => [ 'name' => 'My Stack', 'packages' => ['laravel/sanctum', 'laravel/cashier'], 'structure' => 'api', 'envs' => ['local', 'staging', 'production'], ], ],
Configuration
Edit config/fast-setup.php to add packages, folder structures, and presets.
Adding a package
'packages' => [ 'vendor/package' => [ 'name' => 'Human-readable label', 'post_install' => [ 'artisan' => 'package:install', // optional 'publish' => '--provider="..."', // optional 'migrate' => true, // optional ], ], ],
Adding a structure
'structures' => [ 'my-structure' => [ 'app/Services', 'app/Repositories', 'app/DTOs', ], ],
License
MIT — Karim Kompissi