rahmanramsi/laravel-async-queue

Async queue driver for laravel

1.0.0 2024-05-31 03:35 UTC

This package is auto-updated.

Last update: 2024-05-31 03:43:02 UTC


README

Async Queue driver for Laravel provides an asyncronous queue processing without using any third-party queue services like Redis, RabbitMQ, etc.

Under the hood, it uses AMPHP to handle asyncronous queue processing. All jobs are processed after the response is sent to the browser.

Installation

You can install this package via composer using this command:

composer require rahmanramsi/laravel-async-queue

The package will automatically register itself.

Configuration

Add connection to config/queue.php:

This is the config for the async connection/driver to work.

'connections' => [
    // ...
    'async' => [
        'driver' => 'async',
    ],

    // ...    
],

Usage

Change the default queue driver to async in your .env file:

QUEUE_CONNECTION=async

If you do not know how to use the Queue API, please refer to the official Laravel documentation: http://laravel.com/docs/queues

Contribution

You can contribute to this package by discovering bugs and opening issues. Please, add to which version of package you create pull request or issue. (e.g. [5.2] Fatal error on delayed job)

Credits

License

The MIT License (MIT). Please see License File for more information.