Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s12v/phpque
PHP client for Disque
https://github.com/s12v/phpque
disque php
Last synced: 3 months ago
JSON representation
PHP client for Disque
- Host: GitHub
- URL: https://github.com/s12v/phpque
- Owner: s12v
- License: mit
- Created: 2015-04-30T20:35:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-02T13:41:21.000Z (over 9 years ago)
- Last Synced: 2024-04-19T11:05:22.503Z (9 months ago)
- Topics: disque, php
- Language: PHP
- Homepage: https://packagist.org/packages/s12v/phpque
- Size: 203 KB
- Stars: 11
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/s12v/phpque.svg?branch=master)](https://travis-ci.org/s12v/phpque)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/s12v/phpque/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/s12v/phpque/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/s12v/phpque/v/stable)](https://packagist.org/packages/s12v/phpque)# phpque
Lightweight and fast [Disque](https://github.com/antirez/disque) PHP client without external dependencies.
Supports PHP 5.3, 5.4, 5.5, 5.6, and HHVM.## Installation
```
composer require s12v/phpque
```## Usage
```php
addJob('test_queue', 'some data', 1000);// Get a job from the queue
$job = $client->getJob(array('test_queue'));// Acknowledge the job
$client->ackJob($job);
```## API
Refer to the [Disque documentation](https://github.com/antirez/disque#api) and [ClientInterface](https://github.com/s12v/phpque/blob/master/src/ClientInterface.php)
## Development
Run tests:
```
./vendor/bin/phpunit
```