Skip to content

Knodes/li3_ironmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#li3_ironmq

IronMQ Wrapper for LI3

##Installation

Get the library code:

$ cd /path/to/app/libraries
$ git clone https://github.com/Knodes/li3_ironmq.git

Make sure it's added on app/config/bootstrap/libraries.php with the path included:

Libraries::add('li3_ironmq', array(
  'includePath' => true,
));

##Configuration Make sure your environments have the credentials for IronMQ setup as the params:

  • ironmq.token
  • ironmq.projectId

##Usage li3_ironmq supplies you with a static class (li3_ironmq\core\Queue) that's a basic wrapper to all methods the IronMQ PHP Client accepts.

On top of that it manages the instance of the IronMQ object automatically, so there's no need to create it manually.

##Example

use li3_ironmq\core\Queue;

...

$res = Queue::postMessage( 'MY_QUEUE_NAME', 'Hello World!' );

...

$message = Queue::getMessage( 'MY_QUEUE_NAME' );

About

IronMQ Wrapper for LI3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages