You've already forked ugly-queue
Update README.md
This commit is contained in:
10
README.md
10
README.md
@@ -3,16 +3,14 @@ ugly-queue
|
|||||||
|
|
||||||
A simple file-based FIFO queue system for PHP 5.3.3+
|
A simple file-based FIFO queue system for PHP 5.3.3+
|
||||||
|
|
||||||
Build statuses:
|
Build status: [](https://travis-ci.org/dcarbone/ugly-queue)
|
||||||
- master: [](https://travis-ci.org/dcarbone/ugly-queue)
|
|
||||||
- 0.3.1: [](https://travis-ci.org/dcarbone/ugly-queue)
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
This library is designed to be installed into your app using [https://getcomposer.org/](Composer).
|
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:
|
Simply copy-paste the following line into your `"requires:"` hash:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"dcarbone/ugly-queue": "0.3.*"
|
"dcarbone/ugly-queue": "0.4.*"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Basic Usage
|
## Basic Usage
|
||||||
@@ -57,10 +55,10 @@ $queueBaseDir = 'path to where you would like queue files and directories to be
|
|||||||
|
|
||||||
$manager = new UglyQueueManager($queueBaseDir);
|
$manager = new UglyQueueManager($queueBaseDir);
|
||||||
|
|
||||||
// 'tasty-sandwich' queue will exist now
|
|
||||||
|
|
||||||
$tastySandwich = $manager->getQueue('sandwiches');
|
$tastySandwich = $manager->getQueue('sandwiches');
|
||||||
|
|
||||||
|
// 'sandwiches' queue will exist now
|
||||||
|
|
||||||
$tastySandwich->lock();
|
$tastySandwich->lock();
|
||||||
|
|
||||||
// Specify the number of items you wish to retrieve from the queue
|
// Specify the number of items you wish to retrieve from the queue
|
||||||
|
|||||||
Reference in New Issue
Block a user