PHP code example of spekkionu / ironmq-queue-driver

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

    

spekkionu / ironmq-queue-driver example snippets



use IronMQ\IronMQ;
use PMG\Queue\Serializer\NativeSerializer;
use Spekkionu\PMG\Queue\Iron\Driver\IronDriver;

$ironmq = new IronMQ(array(
    "token" => 'API_TOKEN',
    "project_id" => 'PROJECT_ID'
));
$serializer = new NativeSerializer();
$driver = new IronDriver($ironmq, $serializer, [
    'timeout' => 2,
    'delay' => 0
]);