PHPackages                             iron-io/iron\_worker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. iron-io/iron\_worker

ActiveLibrary[Queues &amp; Workers](/categories/queues)

iron-io/iron\_worker
====================

Client library for IronWorker (multi-language worker platform that runs tasks in the background, in parallel, and at scale.)

2.0.7(4mo ago)57210.5k↓55.6%23[2 issues](https://github.com/iron-io/iron_worker_php/issues)[2 PRs](https://github.com/iron-io/iron_worker_php/pulls)1MITPHPPHP &gt;=5.2.0

Since Oct 23Pushed 4mo ago23 watchersCompare

[ Source](https://github.com/iron-io/iron_worker_php)[ Packagist](https://packagist.org/packages/iron-io/iron_worker)[ Docs](http://github.com/iron-io/iron_worker_php)[ RSS](/packages/iron-io-iron-worker/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (20)Used By (1)

iron\_worker\_php is PHP language binding for IronWorker.

IronWorker is a massively scalable background processing system.

Getting Started
===============

[](#getting-started)

Branches
--------

[](#branches)

- `1.*` - Laravel 4.0/4.1/4.2/5.0 compatible, PHP 5.2 compatible version. No namespaces.
- `2.*` - Laravel 5.1+ compatible, PSR-4 compatible version with namespaces.
- `master` branch - same as `2.*`

Get credentials
---------------

[](#get-credentials)

To start using iron\_worker\_php, you need to sign up and get an oauth token.

1. Sign up [here](https://hud-e.iron.io/signup).
2. Get a token at

Install iron\_worker\_php
-------------------------

[](#install-iron_worker_php)

There are two ways to use iron\_worker\_php:

##### Using composer

[](#using-composer)

Create `composer.json` file in project directory:

```
{
    "require": {
        "iron-io/iron_worker": "2.*"
    }
}
```

Do `composer install` (install it if needed: )

And use it:

```
require __DIR__ . '/vendor/autoload.php';

$worker = new \IronWorker\IronWorker();
```

##### Using classes directly (strongly not recommended)

[](#using-classes-directly-strongly-not-recommended)

1. Copy classes from `src` to target directory
2. Grab IronCore classes [there](https://github.com/iron-io/iron_core_php) and copy to target directory
3. Include them all.

```
require 'src/HttpException.php';
require 'src/JsonException.php';
require 'src/IronCore.php';
require 'src/IronWorker.php';
require 'src/IronWorkerException.php';

$worker = new \IronWorker\IronWorker();
```

Configure
---------

[](#configure)

Three ways to configure IronWorker:

- Passing array with options:

```
