PHP code example of michalsn / codeigniter-queue

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

    

michalsn / codeigniter-queue example snippets


// ...

use App\Jobs\Example;

// ...

public array $jobHandlers = [
    'my-example' => Example::class
];

// ...

service('queue')->push('queueName', 'my-example', ['data' => 'array']);