reedtechus/azure-service-bus-laravel
Composer 安装命令:
composer require reedtechus/azure-service-bus-laravel
包简介
Provides an interface to Azure's Service Bus.
README 文档
README
Azure Service Bus SDK for Laravel / PHP
Provides an interface to Azure's Service Bus.
This package provides an interface to Azure Service Bus.
It implements the Azure Service Bus REST API via Saloon v2.
⚠️ Experimental: This package is still in development and is not ready for production use. Breaking changes can still occur without a major version change until 1.0.0.
Installation
You can install the package via composer:
composer require reedtechus/azure-service-bus-laravel
You can publish the config file with:
php artisan vendor:publish --tag="azure-service-bus-laravel-config"
This is the contents of the published config file:
return [ 'tenant' => env('SERVICE_BUS_TENANT'), 'namespace' => env('SERVICE_BUS_NAMESPACE'), 'cache_driver' => env('SERVICE_BUS_CACHE_DRIVER', 'redis'), ];
Usage
Send a Message to a Queue or Topic
AzureServiceBus::send('queue_or_topic_name', ['payload_data' => 'goes_here'])
Receive a Message from a Queue
Peek (Non-destructive read) a message from a queue:
AzureServiceBus::peek('queue_name')
Peek (Non-destructive read) a message from a topic (via subscription):
AzureServiceBus::peek('queue_name', 'subscription_name')
Destructive Read
The above peek examples can be replaced with pop to perform a destructive read and remove the message from the queue / subscription.
Pop (Destructive read) a message from a queue:
AzureServiceBus::pop('queue_name')
Pop (Destructive read) a message from a topic (via subscription):
AzureServiceBus::pop('queue_name', 'subscription_name')
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
reedtechus/azure-service-bus-laravel 适用场景与选型建议
reedtechus/azure-service-bus-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 3, 最近一次更新时间为 2023 年 01 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「azure」 「laravel」 「service-bus」 「reedtechus」 「azure-service-bus-laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 reedtechus/azure-service-bus-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 reedtechus/azure-service-bus-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 reedtechus/azure-service-bus-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Temporal SDK
Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.
Small library to access Microsoft Windows Azure Blob Storage with a Service or a StreamWrapper.
PHP easy to use command bus.
Laravel integration for command bus.
Adds Silverstripe Flysystem support for using the Azure Blob adapter
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-24
