定制 azure-oss/storage-queue-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

azure-oss/storage-queue-laravel

Composer 安装命令:

composer require azure-oss/storage-queue-laravel

包简介

Azure Storage Queue driver for Laravel

README 文档

README

Latest Version on Packagist Packagist Downloads

Community-driven PHP SDKs for Azure, because Microsoft won't.

In November 2023, Microsoft officially archived their Azure SDK for PHP and stopped maintaining PHP integrations for most Azure services. No migration path, no replacement — just a repository marked read-only.

We picked up where they left off.

Screenshot

Our other packages:

Install

composer require azure-oss/storage-queue-laravel

Documentation

You can read the documentation here.

Configuration

Add a connection to config/queue.php:

'connections' => [
    'azure' => [
        'driver' => 'azure-storage-queue',
        'connection_string' => env('AZURE_STORAGE_CONNECTION_STRING'),
        'queue' => env('AZURE_STORAGE_QUEUE', 'default'),
        'retry_after' => 60,
        'time_to_live' => null,
        'create_queue' => false,
    ],
],

This connector supports shared key and SAS-based authentication via connection_string, or shared key via account_name + account_key. See the docs for configuration examples: https://azure-oss.github.io/category/storage-queue-laravel/installation

Per-message options

pushRaw() accepts retry_after and time_to_live options (seconds):

$queue->pushRaw($payload, null, [
    'retry_after' => 10,
    'time_to_live' => 3600,
]);

Job expiration (important)

retry_after is the queue message visibility timeout. If your job runs longer than retry_after, the message can become visible again and another worker can pick it up, causing double processing.

Set retry_after higher than your longest-running jobs on this connection (and keep your worker --timeout lower than that). See Laravel's docs: https://laravel.com/docs/12.x/queues#job-expiration

License

This project is released under the MIT License. See LICENSE for details.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固