2017 © Pedro Peláez
 

library queue-client

Queue Client

image

reputation-vip/queue-client

Queue Client

  • Monday, March 26, 2018
  • by Neverdane
  • Repository
  • 3 Watchers
  • 9 Stars
  • 16,433 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 10 Forks
  • 1 Open issues
  • 11 Versions
  • 1 % Grown

The README.md

Queue Client

Join the chat at https://gitter.im/ReputationVIP/queue-client Build Status Coverage Status, (*1)

Queue Client is a PHP library that provides a queue abstraction layer (SQS, File, Memory ...)., (*2)

Use case

Queue Client can be used to manage a lot of various queue systems. For example, you could have AWS SQS in production environment, but in-memory queues on the development environment., (*3)

Installation

Development version:, (*4)

php composer.phar require reputation-vip/queue-client:*@dev

Stable version:, (*5)

php composer.phar require reputation-vip/queue-client:0.1.*

Basic Usage

Setup your queue client

For example, let's set up the Queue Client with a file adapter. To setup other adapters, take a look at the Adapter section., (*6)

<?php

use ReputationVIP\QueueClient\QueueClient;
use ReputationVIP\QueueClient\Adapter\FileAdapter;

$adapter = new FileAdapter('/tmp');
$queueClient = new QueueClient($adapter);

Use the queue client

<?php

// ... setup your queue client

$queueClient->createQueue('testQueue');
$queueClient->addMessage('testQueue', 'testMessage');

$messages = $queueClient->getMessages('testQueue');
$message = $messages[0];
$queueClient->deleteMessage($message);
echo $message['Body'];

Unit test

Unit tests are provided by Atoum Atoum., (*7)

To launch unit tests, run the following command:, (*8)

php vendor/atoum/atoum/bin/atoum -c coverage.php -d tests/units/, (*9)

OR, (*10)

make test (docker and docker-compose are required), (*11)

php xdebug extension must be installed for code coverage report to be generated, (*12)

Documentation

About

Requirements

  • PHP 7.1.3 or above.

Submitting bugs and feature requests

Bugs and feature requests are tracked on GitHub, (*13)

Framework Integrations

Author

Nicolas Couet - tejerka@gmail.com - https://twitter.com/tejerka - https://github.com/tejerka
See also the list of contributors who participated to this project., (*14)

The Versions

26/03 2018
06/12 2017

dev-use-new-lock-component

dev-use-new-lock-component

Queue Client

  Sources   Download

The Requires

 

The Development Requires

by Nicolas Couet

07/06 2016
16/03 2016

1.0.x-dev

1.0.9999999.9999999-dev

Queue Client

  Sources   Download

The Requires

 

The Development Requires

by Nicolas Couet

16/03 2016
16/03 2016

dev-fix-bulk-sqs-messages

dev-fix-bulk-sqs-messages

Queue Client

  Sources   Download

The Requires

 

The Development Requires

by Nicolas Couet

27/01 2016
14/01 2016
14/01 2016

dev-badges-update

dev-badges-update

Queue Client

  Sources   Download

The Requires

 

The Development Requires

by Nicolas Couet