reputation-vip/queue-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

reputation-vip/queue-client

最新稳定版本:v2.0.1

Composer 安装命令:

composer require reputation-vip/queue-client

包简介

Queue Client

README 文档

README

Join the chat at https://gitter.im/ReputationVIP/queue-client Build Status Coverage Status

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

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.

Installation

Development version:

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

Stable version:

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.

<?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.

To launch unit tests, run the following command:

php vendor/atoum/atoum/bin/atoum -c coverage.php -d tests/units/

OR

make test (docker and docker-compose are required)

php xdebug extension must be installed for code coverage report to be generated

Documentation

About

Requirements

  • PHP 7.1.3 or above.

Submitting bugs and feature requests

Bugs and feature requests are tracked on GitHub

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.

统计信息

  • 总下载量: 28.75k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 2
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固