PHP code example of italiansubs / resque-enqueuer

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

    

italiansubs / resque-enqueuer example snippets

 bash
$ curl -s https://getcomposer.org/installer | php
$ php composer.phar install
 php

ueEnqueuer\Enqueuer;

try {
    $enq = new Enqueuer(); // $redisHost, $redisPort, $redisDb, $resqueBaseKeyName
    $enq->enqueue('queue_name', 'job_name', array('id_user' => 100, 'other_param' => 'foo'));
} catch (RedisException $e) {
    echo $e->getMessage() . PHP_EOL;
}