PHP code example of bokt / flarum-queue

1. Go to this page and download the library: Download bokt/flarum-queue 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/ */

    

bokt / flarum-queue example snippets


return [
    new \Bokt\Queue\Extend\EnableQueues,
  // .. your code
];

app()->make('queue')->push(new YouHadOneJob);

  'database' => [
    // ..
  ],
  'queue' => [
    'driver' => 'redis',
    'connection' => 'default',
    'queue' => env('REDIS_QUEUE', 'default'),
    'retry_after' => 90,
    'block_for' => null,
  ],
bash
$ php flarum queue:work
bash
$ php flarum queue:tables