2017 © Pedro Peláez
 

project yii2-ironmq

Yii2 wrapper for IronMQ V3

image

br0sk/yii2-ironmq

Yii2 wrapper for IronMQ V3

  • Saturday, November 14, 2015
  • by br0sk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 216 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

yii2-ironmq

A Yii2 extension for IronMQ V3, (*1)

This is an extension for Yii2 that makes it easy to use IronMq V3., (*2)

Add it to the composer file, (*3)

"require": {
    "php": ">=5.4.0",
    "yiisoft/yii2": "*",
    "yiisoft/yii2-bootstrap": "*",
    "yiisoft/yii2-swiftmailer": "*",
    "br0sk/yii2-ironmq": "0.*",
},

You can configure it in your application components configuration like so:, (*4)

'ironmq' => [
    //Mandatory config values
    'class' => 'br0sk\ironmq\IronMQ',
    'projectId'     => 'yourprojectid',
    'token'         => 'yourtoken'
    //Optional config values
    'protocol'      => 'https',
    'host'          => 'mq-aws-us-east-1-1.iron.io',
    'port'          => '443',
    'api_version'   => '3'
],

note: You can find the project id and token in the HUD for your V3 queue if you log in here. The tokens can be found on their own page here here., (*5)

An example of typical usage:, (*6)

    //Push a message to the queue
    $pushedMessage = Yii::$app->ironmq->postMessage("queue_name", "Test Message");
    //Reserve a message from the queue to process it
    $message = Yii::$app->ironmq->reserveMessage('queue_name');
    //When processing is done remove the message from the queue
    $deltedResult = Yii::$app->ironmq->deleteMessage('queue_name', $message->id, $message->reservation_id);

You can now use all the calls in the IronMQ API., (*7)

This extension is a wrapper for irom_mq_php, (*8)

The Versions

14/11 2015

dev-master

9999999-dev http://br0sk.blogspot.com

Yii2 wrapper for IronMQ V3

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 mq iron.io

14/11 2015

0.1.3

0.1.3.0 http://br0sk.blogspot.com

Yii2 wrapper for IronMQ V3

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 mq iron.io

14/11 2015

0.1.2

0.1.2.0 http://br0sk.blogspot.com

Yii2 wrapper for IronMQ V3

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 mq iron.io

08/11 2015

0.1.0

0.1.0.0 http://br0sk.blogspot.com

Yii2 wrapper for IronMQ V3

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 mq iron.io

08/11 2015

0.1.1

0.1.1.0 http://br0sk.blogspot.com

Yii2 wrapper for IronMQ V3

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 mq iron.io