2017 © Pedro Peláez
 

library phpque

Lightweight Disque client

image

s12v/phpque

Lightweight Disque client

  • Saturday, May 2, 2015
  • by s12v
  • Repository
  • 1 Watchers
  • 10 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality Latest Stable Version, (*1)

phpque

Lightweight and fast Disque PHP client without external dependencies. Supports PHP 5.3, 5.4, 5.5, 5.6, and HHVM., (*2)

Installation

composer require s12v/phpque

Usage

<?php

use Phpque\Client;
use Phpque\Connection\ConnectionException;

require '../vendor/autoload.php';

try {
    // Connect to a server pool
    $client = new Client(['tcp://127.0.0.1:7711', 'tcp://127.0.0.1:7712']);

    // ... or to a single server
    $client = new Client('tcp://127.0.0.1:7711');
} catch (ConnectionException $e) {
    // Handle connection errors
    throw $e;
}

// Add a job with payload "some data" and timeout 1 sec
$client->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 and ClientInterface, (*3)

Development

Run tests:, (*4)

./vendor/bin/phpunit

The Versions

02/05 2015

dev-master

9999999-dev http://github.com/s12v/phpque

Lightweight Disque client

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Sergey Novikov

queue message disque

02/05 2015

0.0.3

0.0.3.0 http://github.com/s12v/phpque

Lightweight Disque client

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Sergey Novikov

queue message disque

01/05 2015

0.0.2

0.0.2.0 http://github.com/s12v/phpque

Lightweight Disque client

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Sergey Novikov

queue message disque

01/05 2015

0.0.1

0.0.1.0 http://github.com/s12v/phpque

Lightweight Disque client

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Sergey Novikov

queue message disque