PHPackages                             lightster/hodor - 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. lightster/hodor

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

lightster/hodor
===============

PHP/rabbitmq-based job queue

v0.2.1(8y ago)3141[14 issues](https://github.com/lightster/hodor/issues)MITPHPPHP &gt;=5.5.18

Since Mar 12Pushed 7y ago2 watchersCompare

[ Source](https://github.com/lightster/hodor)[ Packagist](https://packagist.org/packages/lightster/hodor)[ Docs](http://github.com/lightster/hodor)[ RSS](/packages/lightster-hodor/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (8)Versions (12)Used By (0)

Hodor
=====

[](#hodor)

[![Build Status](https://camo.githubusercontent.com/58a5503acb9b3f1e8718162fce49fc56ac8edb5833cb372b75f8134afcdf92f8/68747470733a2f2f7472617669732d63692e6f72672f6c69676874737465722f686f646f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lightster/hodor)[![Test Coverage](https://camo.githubusercontent.com/ce1d8eff933559cf0b6d5c76b19ddb2008c52851bb8bf42e00bb22a83a40a836/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6c69676874737465722f686f646f722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/lightster/hodor/coverage)[![Code Climate](https://camo.githubusercontent.com/591d711a9bd52baa9163a456c787241c44e4aaaad2cd40d9eec485e490062433/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6c69676874737465722f686f646f722f6261646765732f6770612e737667)](https://codeclimate.com/github/lightster/hodor)

A worker queue that is evolving to a job queue

Requirements
------------

[](#requirements)

- PHP &gt;= 5.5.18
- Composer
- Supervisord
- Postgres &gt;= 9.3
- RabbitMQ

Configuration
-------------

[](#configuration)

Install Hodor in your application via composer:

```
composer require lightster/hodor:^0.2.0
```

Create a database on your Postgres server to use with your instance of Hodor:

```
CREATE DATABASE hodor;
```

Copy the Hodor distribution config to wherever you keep your application configs:

```
cp vendor/lightster/hodor/config/dist/config.dist.php config/hodor.php
```

Update the Postgres and RabbitMQ credentials in your config file.

Write your job runner bootstrap in the `job_runner` key of the config file. The method defined here will be called with the job name and job params any time a worker receives a job message. This method should not be more than a few lines—anything more than that should be offloaded into a bootstrap include script or class. An example job runner may look like:

```
