Codeigniter library for Iron.io
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
libraries
LICENSE
README.md

README.md

Codeigniter Iron.io Library

This is a Codeigniter library for iron.io.

Getting Started

Get credentials

To start using iron.io, 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 Library

  1. Move library files and directory into application/libraries
  2. Move configuration file into application/config

--

Configure

Edit config/iron_io.php and fill it in with your Iron.io credentials.

--

Basic Usage

<?php
    $this->load->library('iron_io');

    /**
     * IronMQ example
     *
     * For a complete list of available methods look inside Iron_MQ.class.php
     */
    $this->iron_io->queue->postMessage($queue_name, $message, $properties = array());


    /**
     * IronCache example
     *
     * For a complete list of available methods look inside Iron_Cache.class.php
     */
    $this->iron_io->cache->put($key, $item);

    $this->iron_io->cache->get($key);


    /**
     * IronWorker example
     *
     * For a complete list of available methods look inside Iron_Worker.class.php
     */
    $this->iron_io->worker->postTask($name, $payload = array(), $options = array());