spekkionu/ironmq-queue-driver

iron.io driver for pmg/queue

2.0.0 2016-09-20 04:08 UTC

This package is auto-updated.

Last update: 2024-11-12 13:01:42 UTC


README

==============================

Latest Stable Version Total Downloads Build Status SensioLabsInsight Scrutinizer Code Quality Code Coverage

<?php
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
]);