2014-08-08 13:28:13 -05:00
|
|
|
ugly-queue
|
|
|
|
|
==========
|
|
|
|
|
|
|
|
|
|
A simple file-based queue system for PHP 5.3.3+
|
2014-08-08 15:06:11 -05:00
|
|
|
|
2014-10-30 10:54:06 -05:00
|
|
|
Build statuses:
|
|
|
|
|
- master: [](https://travis-ci.org/dcarbone/ugly-queue)
|
2014-10-30 10:55:29 -05:00
|
|
|
- 0.3.1: [](https://travis-ci.org/dcarbone/ugly-queue)
|
2014-08-08 18:15:02 -05:00
|
|
|
|
2015-09-29 11:35:48 -05:00
|
|
|
## Installation
|
|
|
|
|
This library is designed to be installed into your app using [https://getcomposer.org/](Composer).
|
|
|
|
|
Simply copy-paste the following line into your `"requires:"` hash:
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
"dcarbone/ugly-queue": "0.3.*"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Basic Usage
|
|
|
|
|
Once installed, you must first initialize an instance of [src/UglyQueueManager.php](UglyQueueManager).
|
|
|
|
|
This is done as such:
|
|
|
|
|
|
|
|
|
|
```php
|
|
|
|
|
$config = array(
|
|
|
|
|
'queue-base-dir' => 'path to where you would like queue files and directories to be stored'
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$manager = new UglyQueueManager($config);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Once initialized, you can start adding queues!
|
|
|
|
|
|
|
|
|
|
```php
|
|
|
|
|
$manager
|
|
|
|
|
```
|