Download the PHP package iron-io/iron_mq without Composer

On this page you can find all versions of the php package iron-io/iron_mq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package iron_mq

IronMQ v4 PHP Client Library

IronMQ is an elastic message queue for managing data and event flow within cloud applications and between systems.

This library uses IronMQ API v3.

Branches

*If you're using laravel and see "Class IronMQ not found" error set iron_mq version to `1.` and install/update dependencies**

Update notes

Getting Started

Get credentials

To start using iron_mq_php, you need to sign up and get an oauth token.

  1. Go to http://iron.io/ and sign up.
  2. Get an Oauth Token at http://hud.iron.io/tokens

--

Install iron_mq_php

There are two ways to use iron_mq_php:

Using composer

Create composer.json file in project directory:

Do composer install (install it if needed: https://getcomposer.org/download/)

And use it:

Using classes directly (strongly not recommended)
  1. Copy classes from src to target directory
  2. Grab IronCore classes there and copy to target directory
  3. Include them all.

--

Configure

Three ways to configure IronMQ:

--

Keystone Authentication

Via Configuration File

Add keystone section to your iron.json file:

In Code

The Basics

Post a Message to the Queue

More complex example:

Post multiple messages in one API call:

--

Reserve a Message

When you pop/get a message from the queue, it will NOT be deleted. It will eventually go back onto the queue after a timeout if you don't delete it (default timeout is 60 seconds).

Reserve multiple messages in one API call:

Reservation Id is needed for operations like delete, touch or release a message. It could be obtained from message model after reserving it:

--

Delete a Message from the Queue

If message isn't reserved, you don't need to provide reservation id

Delete a message from the queue when you're done with it.

Delete multiple messages in one API call:

Delete multiple messages specified by messages id array.

It's also possible to delete array of message objects:

--

Troubleshooting

http error: 0

If you see Uncaught exception 'Http_Exception' with message 'http error: 0 | ' it most likely caused by misconfigured cURL https sertificates. There are two ways to fix this error:

  1. Disable SSL sertificate verification - add this line after IronMQ initialization: $ironmq->ssl_verifypeer = false;
  2. Switch to http protocol - add this to configuration options: protocol = http and port = 80
  3. Fix the error! Recommended solution: download actual certificates - cacert.pem and add them to php.ini:

--

Updating notes

--

Queues

IronMQ Client

IronMQ is based on IronCore and provides easy access to the whole IronMQ API.

--

List Queues

This code will return first 30 queues sorted by name.

Optional parameters:

Assume you have queues named "a", "b", "c", "d", "e". The following code will list "c", "d" and "e" queues:

--

Retrieve Queue Information

--

Delete a Message Queue

--

Post Messages to a Queue

Single message:

Multiple messages:

Optional parameters (3rd, array of key-value pairs):

--

Get Messages from a Queue

Single message:

Multiple messages:

Optional parameters:

--

Touch a Message on a Queue

Touching a reserved message returns new reservation with specified or default timeout.

--

Release Message

Parameters:

--

Delete a Message from a Queue

--

Peek Messages from a Queue

Peeking at a queue returns the next messages on the queue, but it does not reserve them.

Single message:

Multiple messages:

--

Clear a Queue

--

Push Queues

IronMQ push queues allow you to setup a queue that will push to an endpoint, rather than having to poll the endpoint. Here's the announcement for an overview.

Create a Queue

Options:

The following parameters are all related to Push Queues:

--

Update Queue Information

Same as create queue. A push queue couldn't be changed into a pull queue, so vice versa too.

Add/Remove Subscribers on a Queue

Add subscribers to Push Queue:

--

Replace Subscribers on a Queue

Sets list of subscribers to a queue. Older subscribers will be removed.

Remove Subscribers from a Queue

Remove subscriber from a queue. This is for Push Queues only.

Get Message Push Status

Returns an array of subscribers with status.

--

Acknowledge, That Push Message Is Processed

This method could be used to acknowledgement process of push messages. See IronMQ v3 documentation on long-processing for further information.

--

Further Links


© 2011 - 2013 Iron.io Inc. All Rights Reserved.


All versions of iron_mq with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.0
iron-io/iron_core Version 1.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package iron-io/iron_mq contains the following files

Loading the files please wait ....