stayallive/laravel-azure-blob-queue

This package is abandoned and no longer maintained. No replacement package was suggested.

Extending the Laravel queue to support the Microsoft Azure Blob Queue.

v1.0.0 2014-08-25 20:45 UTC

This package is auto-updated.

Last update: 2022-02-01 12:38:47 UTC


README

Installation

Require this package in your composer.json:

"stayallive/laravel-azure-blob-queue": "1.*"

Add the following pear repository in your composer.json required by the Azure SDK:

"repositories": [
    {
        "type": "pear",
        "url": "http://pear.php.net"
    }
],

Run composer update!

After composer update is finished you need to add ServiceProvider to your providers array in app/config/app.php:

'Stayallive\LaravelAzureBlobQueue\Support\Serviceprovider',

add the following to the connection array in app/config/queue.php, set your default connection to azure and fill out your own connection data from the Azure Management portal:

'azure' => array(
    'driver'      => 'azure.blob',
    'protocol'    => 'https',
    'accountname' => '',
    'key'         => '',
    'queue'       => ''
)

Usage

Once you completed the configuration you can use Laravel Queue API. If you used other queue drivers you do not need to change anything else. If you do not know how to use Queue API, please refer to the official Laravel documentation.

This queue driver will not accept a closure, you should use classes to handle the queue messages!

Contribution

You can contribute to this package by opening issues/pr's. Enjoy!