PHPackages                             bostjanob/queue-platform - 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. bostjanob/queue-platform

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

bostjanob/queue-platform
========================

PHP queue platform to simple build queue job

013PHP

Since Feb 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/BostjanOb/QueuePlatform)[ Packagist](https://packagist.org/packages/bostjanob/queue-platform)[ RSS](/packages/bostjanob-queue-platform/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Queue Platform
==============

[](#queue-platform)

[![Build Status](https://camo.githubusercontent.com/07748b85e0fae725d00a1b7a6b2f6db85df5de266a50f6bcb1bdea4c69616f2a/68747470733a2f2f7472617669732d63692e6f72672f426f73746a616e4f622f5175657565506c6174666f726d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/BostjanOb/QueuePlatform)

PHP Queue Platform provides an easy way to build queue system in PHP.

Easy way
--------

[](#easy-way)

The easiest path to use queue platform is to use [QueuePlatformExample repository](https://github.com/BostjanOb/QueuePlatformExample).

QueuePlatformExample provides a complete working example with sample workers. To run and test it, it comes with configured vagrant setup. To use it just boot up vagrant with `vagrant up`.

Vagrant setup will set up a complete environment. It will start 5 working processes, setup queue manager URL and server testing GUI.

URL to testing GUI:

How to modify it, see docs in QueuePlatformExample repository.

Hard way
--------

[](#hard-way)

### 1. require package

[](#1-require-package)

Require QueuePlatform package with composer: `composer require bostjanob/queue-platform`.

### 2. create workers

[](#2-create-workers)

Workers must extend `BostjanOb\QueuePlatform\Worker` interface.

The only method to implement is `run($params = null)`.

### 3. create QueueManager class and register workers

[](#3-create-queuemanager-class-and-register-workers)

Create a new `BostjanOb\QueuePlatform\QueueManager` object and register your workers with it.

For constructor, you **must** provide storage object (object that implements `\BostjanOb\QueuePlatform\Storage\Storage`)

```
