PHPackages                             talovicnedim/laravel-queue-prefix - 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. talovicnedim/laravel-queue-prefix

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

talovicnedim/laravel-queue-prefix
=================================

Add prefix your laravel queues to support multiple environments.

1.2.0(3mo ago)71.4k↓45.2%2MITPHPPHP ^8.0

Since Aug 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/talovicnedim/laravel-queue-prefix)[ Packagist](https://packagist.org/packages/talovicnedim/laravel-queue-prefix)[ Docs](https://github.com/talovicnedim/laravel-queue-prefix)[ RSS](/packages/talovicnedim-laravel-queue-prefix/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (4)Dependencies (8)Versions (5)Used By (0)

Laravel Queue Prefix
====================

[](#laravel-queue-prefix)

This package adds queue name prefixes in Laravel to avoid conflicts between different environments.

It's recommended to use separate queues for different environments when hosting under one cloud account.

By simplifying your queue management, you can improve your application's efficiency and avoid potential issues.

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

[](#installation)

You can install the package via Composer:

```
composer require talovicnedim/laravel-queue-prefix
```

The package will automatically register itself. If, for some reason, the package is not registered automatically, you can add the following line to your config/app.php file:

```
'providers' => [
    // ...
    Talovicnedim\LaravelQueuePrefix\QueuePrefixServiceProvider::class,
],
```

You can publish the configuration file with:

```
php artisan vendor:publish --provider="Talovicnedim\LaravelQueuePrefix\QueuePrefixServiceProvider"
```

This will create a **`queue-prefix.php`** file in your config directory.

Usage
-----

[](#usage)

Once you have installed the package and published the configuration file, you can enable or disable prefixing of queue names by setting the enabled option in the configuration file.

```
return [
    'enabled' => true, // enable prefixing
    'prefix' => env('APP_ENV', 'prod') // the prefix to use (if enabled)
    'allowed_queues' => ['*'] // prefix all queues
    'excluded_queues' => [] // queues to exclude from prefixing
];
```

If prefixing is enabled, the package will automatically add the prefix to the names of all queues before they are dispatched.

For example, if you have a queue named emails, and your prefix is set to `prod` the queue name will be changed to `prod-emails`.

If prefixing is disabled, the package will not modify the names of queues before they are dispatched.

Documentation
-------------

[](#documentation)

You can learn more about how the package works by reading the [blog post](https://nedimtalovic.dev/laravel-queue-prefix) I published.

Testing
-------

[](#testing)

You can run the tests with:

```
composer test
```

Credits
-------

[](#credits)

- [Nedim Talovic](https://github.com/talovicnedim)
- [All Contributors](https://github.com/talovicnedim/laravel-queue-prefix/graphs/contributors)

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~319 days

Total

4

Last Release

97d ago

Major Versions

0.0.1 → 1.0.02023-08-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4561819?v=4)[Nedim Talović](/maintainers/talovicnedim)[@talovicnedim](https://github.com/talovicnedim)

---

Top Contributors

[![talovicnedim](https://avatars.githubusercontent.com/u/4561819?v=4)](https://github.com/talovicnedim "talovicnedim (8 commits)")[![makowskid](https://avatars.githubusercontent.com/u/6271194?v=4)](https://github.com/makowskid "makowskid (2 commits)")

---

Tags

laravelphpqueuelaraveltalovicnedimlaravel-queue-prefix

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/talovicnedim-laravel-queue-prefix/health.svg)

```
[![Health](https://phpackages.com/badges/talovicnedim-laravel-queue-prefix/health.svg)](https://phpackages.com/packages/talovicnedim-laravel-queue-prefix)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1963.4k](/packages/ublabs-blade-simple-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
