PHPackages                             aloware/fair-queue - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. aloware/fair-queue

ActiveLibrary[Queues &amp; Workers](/categories/queues)

aloware/fair-queue
==================

Laravel package to provide fair consumption of jobs against multiple partitions.

v2.1.0(3mo ago)619.5k2[1 PRs](https://github.com/aloware/fair-queue/pulls)MITVuePHP ^7.1|^8.0

Since Mar 25Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/aloware/fair-queue)[ Packagist](https://packagist.org/packages/aloware/fair-queue)[ RSS](/packages/aloware-fair-queue/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (5)Versions (54)Used By (0)

Aloware - Fair Queue
====================

[](#aloware---fair-queue)

Laravel package to provide fair consumption of jobs against multiple partitions.

Installation
------------

[](#installation)

```
composer require aloware/fair-queue
```

Assets
------

[](#assets)

Run the following command to publish assets and config file:

```
php artisan fair-queue:publish
```

Usage
-----

[](#usage)

This package uses Redis as data storage. By default it uses `default`redis connection. You may configure to use another connection within the fair-queue config file or by setting in the environment file.

```
FAIR_QUEUE_REDIS_DB="default"
FAIR_QUEUE_KEY_PREFIX="fair-queue"

```

Now, you need to replace `use Dispatchable;` with `use FairDispatchable;`in the Job class you need fair consumption functionality.

```
