PHP code example of karimalik / laravel-fast-setup

1. Go to this page and download the library: Download karimalik/laravel-fast-setup library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

karimalik / laravel-fast-setup example snippets


'presets' => [
    'my-preset' => [
        'name'      => 'My Stack',
        'packages'  => ['laravel/sanctum', 'laravel/cashier'],
        'structure' => 'api',
        'envs'      => ['local', 'staging', 'production'],
    ],
],

'packages' => [
    'vendor/package' => [
        'name'         => 'Human-readable label',
        'post_install' => [
            'artisan' => 'package:install',  // optional
            'publish' => '--provider="..."', // optional
            'migrate' => true,               // optional
        ],
    ],
],

'structures' => [
    'my-structure' => [
        'app/Services',
        'app/Repositories',
        'app/DTOs',
    ],
],
bash
php artisan fast:setup
bash
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