PHP code example of pyro / custom-install

1. Go to this page and download the library: Download pyro/custom-install 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/ */

    

pyro / custom-install example snippets


return [
    // call artisan commands before running install
    'call_before'          => [
        ['db:seed', ['--class' => 'Name\\Space\\Class']]
    ],
    
    // dispatch bus commands before running install
    'dispatch_before'      => [
        function($app){
            return new \Name\Space\PreInstallActions();
        }
    ],
    
    // call artisan commands after running install
    'call_after'           => [
        ['db:seed', ['--class' => 'Namespace\\To\\Class']]
    ],
    
    // dispatch bus commands after running install
    'dispatch_after'       => [
        function($app){
            return new \Name\Space\PostInstallActions();
        }
    ],
    
    // --skip_steps=11,22,46
    'skip_steps'           => [
        // 11, 22, 46
    ],
    
    // --start_from_step=1
    'start_from_step'      => 1,
    
    // --ignore_exceptions
    // if true, asks to continue 
    // if true + no-interaction, continues with warning 
    'ignore_exceptions'    => false, 
    
    // skip seeds of certain modules 
    'skip_seed'            => [
        'anomaly.module.users',
    ],
    
    // `