Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```