baywa-re-lusy/queue
最新稳定版本:3.6.0
Composer 安装命令:
composer require baywa-re-lusy/queue
包简介
BayWa r.e. LUSY Queue Tools
README 文档
README
Installation
To install the Queue tools, you will need Composer in your project:
composer require baywa-re-lusy/queue
Usage
Currently, this library supports AWS SQS and Azure Queue. However, it uses an Adapter pattern to allow adding other vendors easily.
AWS
use BayWaReLusy\QueueTools\QueueService; use BayWaReLusy\QueueTools\Adapter\AwsSqsAdapter; $adapter = new AwsSqsAdapter($awsRegion, $awsKey, $awsSecret, $sqsEndpoint); $queueService = new QueueService($adapter);
The SQS endpoint is optional and is only necessary for non-AWS SQS-providers (like ElasticMQ).
Azure
use BayWaReLusy\QueueTools\QueueService; use BayWaReLusy\QueueTools\Adapter\AzureQueueAdapter; $adapter = new AzureQueueAdapter($queueEndpoint, $sasToken); $queueService = new QueueService($adapter);
If the queue Endpoint doesn't refer to azure (xxx.core.windows.net), it will use the local instance of Azurite instead with default values
统计信息
- 总下载量: 954
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2021-11-29