karimalik/laravel-fast-setup
Composer 安装命令:
composer require karimalik/laravel-fast-setup
包简介
Automates repetitive Laravel project setup tasks: package installation, environment generation, and folder structure scaffolding.
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-13