stayallive/laravel-azure-servicebus-queue

此包已被废弃,不再维护。未建议替代包。

扩展 Laravel 队列以支持 Microsoft Azure Service Bus 队列。

v2.0.0 2016-08-20 19:26 UTC

This package is auto-updated.

Last update: 2020-03-04 16:16:36 UTC


README

安装

在您的 composer.json 中需要此包

"stayallive/laravel-azure-servicebus-queue": "2.*"

运行 composer update!

composer 更新完成后,您需要在 app/config/app.php 中的 providers 数组中添加 ServiceProvider

'Stayallive\LaravelAzureServicebusQueue\Support\Serviceprovider',

app/config/queue.php 中的 connection 数组中添加以下内容,将您的 default 连接设置为 azure 并填写从 Azure 管理门户获取的自己的连接数据

'azure' => array(
    'driver'       => 'azure.servicebus',
    'endpoint'     => 'https://*.servicebus.windows.net',
    'secret'       => '',
    'secretissuer' => 'owner',
    'queue'        => ''
)

使用

完成配置后,您可以使用 Laravel 队列 API。如果您使用了其他队列驱动,您不需要更改其他任何内容。如果您不知道如何使用队列 API,请参阅官方 Laravel 文档

贡献

您可以通过打开 issues/pr 来为此包做出贡献。祝您玩得开心!