PHP code example of laravel-lumen / horizon

1. Go to this page and download the library: Download laravel-lumen/horizon 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/ */

    

laravel-lumen / horizon example snippets


$app->withFacades();
$app->withEloquent();

    $app->register(Illuminate\Redis\RedisServiceProvider::class);

$app->configure('app');

    // add provider
    $app->register(Laravel\Horizon\HorizonServiceProvider::class);
    // add config
    $app->configure('horizon');
bash
    cp vendor/horizon-lumen/config/horizon.php config/horizon.php