karimalik/laravel-fast-setup

Automates repetitive Laravel project setup tasks: package installation, environment generation, and folder structure scaffolding.

Maintainers

Package info

github.com/karimalik/laravel-fast-setup

pkg:composer/karimalik/laravel-fast-setup

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-06-13 19:04 UTC

This package is auto-updated.

Last update: 2026-06-13 19:51:35 UTC


README

  ███████╗ █████╗ ███████╗████████╗    ███████╗███████╗████████╗██╗   ██╗██████╗
  ██╔════╝██╔══██╗██╔════╝╚══██╔══╝    ██╔════╝██╔════╝╚══██╔══╝██║   ██║██╔══██╗
  █████╗  ███████║███████╗   ██║       ███████╗█████╗     ██║   ██║   ██║██████╔╝
  ██╔══╝  ██╔══██║╚════██║   ██║       ╚════██║██╔══╝     ██║   ██║   ██║██╔═══╝
  ██║     ██║  ██║███████║   ██║       ███████║███████╗   ██║   ╚██████╔╝██║
  ╚═╝     ╚═╝  ╚═╝╚══════╝   ╚═╝       ╚══════╝╚══════╝   ╚═╝    ╚═════╝ ╚═╝
  Laravel Fast Setup — by Karim Kompissi

Total Downloads Latest Version PHP Version License

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