PHPackages                             phobetor/rabbitmq-supervisor-bundle - 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. phobetor/rabbitmq-supervisor-bundle

ActiveSymfony-bundle[Queues &amp; Workers](/categories/queues)

phobetor/rabbitmq-supervisor-bundle
===================================

Symfony bundle to automatically create and update supervisor configurations for RabbitMQ consumer daemons

3.3.0(8mo ago)104564.5k—0.9%44[3 issues](https://github.com/Phobetor/rabbitmq-supervisor-bundle/issues)[2 PRs](https://github.com/Phobetor/rabbitmq-supervisor-bundle/pulls)MITPHPCI failing

Since Jul 28Pushed 8mo ago9 watchersCompare

[ Source](https://github.com/Phobetor/rabbitmq-supervisor-bundle)[ Packagist](https://packagist.org/packages/phobetor/rabbitmq-supervisor-bundle)[ Docs](https://github.com/Phobetor/rabbitmq-supervisor-bundle)[ RSS](/packages/phobetor-rabbitmq-supervisor-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (23)Used By (0)

RabbitMQ supervisor bundle
==========================

[](#rabbitmq-supervisor-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/35edd482f5f1d4b686470ecf22eb830dd5dadb13241578667dae2471a33c2631/68747470733a2f2f706f7365722e707567782e6f72672f70686f6265746f722f7261626269746d712d73757065727669736f722d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/phobetor/rabbitmq-supervisor-bundle) [![License](https://camo.githubusercontent.com/b8563e4045c140ead7ee6d16b5783691d7d53e3f4d8dd3e1d9d1f58b05a074dd/68747470733a2f2f706f7365722e707567782e6f72672f70686f6265746f722f7261626269746d712d73757065727669736f722d62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/phobetor/rabbitmq-supervisor-bundle)

Symfony bundle to automatically create and update [supervisor](http://supervisord.org/) configurations for `php-amqplib/rabbitmq-bundle` (and its predecessor `oldsound/rabbitmq-bundle`) RabbitMQ consumer daemons.

In a nutshell | tl;dr
---------------------

[](#in-a-nutshell--tldr)

If you use `php-amqplib/rabbitmq-bundle` to handle the communication with RabbitMQ, just install [supervisor](http://supervisord.org/), add this bundle and run

```
$ app/console rabbitmq-supervisor:rebuild
```

to get a running `supervisord` instance that automatically manages all your consumer daemons. When your worker configuration or your code changes, run the command again and all the daemons will be updated.

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

[](#installation)

Install [supervisor](http://supervisord.org/). e. g. on debian based distributions via `apt-get`:

```
# apt-get install supervisor
```

Add bundle via composer

```
$ php composer require phobetor/rabbitmq-supervisor-bundle
```

This will install the bundle to your project’s `vendor` directory.

If your are not using Symfony Flex, also add the bundle to your project’s `AppKernel`:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // […]
        new Phobetor\RabbitMqSupervisorBundle\RabbitMqSupervisorBundle(),
    ];
}
```

Symfony 5:

```
// config/bundles.php
return [
    ...
    Phobetor\RabbitMqSupervisorBundle\RabbitMqSupervisorBundle::class => ["all" => true],
    ...
];
```

Zero Configuration
------------------

[](#zero-configuration)

RabbitMQ supervisor bundle works out of the box with a predefined configuration. If you leave it this way you will end up with this directory structure:

```
supervisor/
└── dev
    ├── logs
    │   ├── stderr.log
    │   └── stdout.log
    ├── supervisord.conf
    ├── supervisord.log
    ├── supervisor.pid
    ├── supervisor.sock
    └── worker
        ├── queue1.conf
        ├── queue2.conf
        ├── queue3.conf
        └── queue4.conf
```

If you want to use the standard structure inside of the `var/` directory, change the configuration like this:

```
rabbit_mq_supervisor:
    paths:
        workspace_directory:            "%kernel.project_dir%/var/supervisor/%kernel.environment%/"
        configuration_file:             "%kernel.project_dir%/var/supervisor/%kernel.environment%/supervisord.conf"
        pid_file:                       "%kernel.project_dir%/var/supervisor/%kernel.environment%/supervisor.pid"
        sock_file:                      "%kernel.project_dir%/var/supervisor/%kernel.environment%/supervisor.sock"
        log_file:                       "%kernel.project_dir%/var/supervisor/%kernel.environment%/supervisord.log"
        worker_configuration_directory: "%kernel.project_dir%/var/supervisor/%kernel.environment%/worker/"
        worker_output_log_file:         "%kernel.project_dir%/var/supervisor/%kernel.environment%/logs/stdout.log"
        worker_error_log_file:          "%kernel.project_dir%/var/supervisor/%kernel.environment%/logs/stderr.log"
```

Advanced configuration
----------------------

[](#advanced-configuration)

To see all configuration options run

```
$ console config:dump-reference RabbitMqSupervisorBundle
```

### BC break when updating from v1.\* to v2.\*

[](#bc-break-when-updating-from-v1-to-v2)

If you used custom commands before version 2.0, you need to update them. In most case you can just remove everything after the command name.

### BC break when updating from v2.\* to v3.\*

[](#bc-break-when-updating-from-v2-to-v3)

Commands will by default no longer wait for `supervisord` to complete. If you need this (e. g. to get feedback on errors) use the `--wait-for-supervisord` option.

Usage
-----

[](#usage)

Build or rebuild the supervisor and worker configuration and start the daemon:

```
$ console rabbitmq-supervisor:rebuild
```

Control the supervisord daemon:

```
$ console rabbitmq-supervisor:control stop
$ console rabbitmq-supervisor:control start
$ console rabbitmq-supervisor:control restart
$ console rabbitmq-supervisor:control hup
```

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance58

Moderate activity, may be stable

Popularity52

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 88.1% 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 ~192 days

Recently: every ~663 days

Total

22

Last Release

265d ago

Major Versions

1.5.2 → 2.0.02017-01-07

2.0.0 → 3.0.02018-05-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c25fc547c529846c053b3f38d9303ebbedda7420c4183c3e15ae7a7c812ab7f?d=identicon)[Phobetor](/maintainers/Phobetor)

---

Top Contributors

[![Phobetor](https://avatars.githubusercontent.com/u/712973?v=4)](https://github.com/Phobetor "Phobetor (126 commits)")[![jjbubudi](https://avatars.githubusercontent.com/u/788781?v=4)](https://github.com/jjbubudi "jjbubudi (3 commits)")[![gregurco](https://avatars.githubusercontent.com/u/4052904?v=4)](https://github.com/gregurco "gregurco (2 commits)")[![webroru](https://avatars.githubusercontent.com/u/11889133?v=4)](https://github.com/webroru "webroru (2 commits)")[![DavidBennettUK](https://avatars.githubusercontent.com/u/3920550?v=4)](https://github.com/DavidBennettUK "DavidBennettUK (1 commits)")[![6ecuk](https://avatars.githubusercontent.com/u/8338314?v=4)](https://github.com/6ecuk "6ecuk (1 commits)")[![robholmes](https://avatars.githubusercontent.com/u/206717?v=4)](https://github.com/robholmes "robholmes (1 commits)")[![RonRademaker](https://avatars.githubusercontent.com/u/2697738?v=4)](https://github.com/RonRademaker "RonRademaker (1 commits)")[![spdionis](https://avatars.githubusercontent.com/u/4737101?v=4)](https://github.com/spdionis "spdionis (1 commits)")[![tackerm](https://avatars.githubusercontent.com/u/16286510?v=4)](https://github.com/tackerm "tackerm (1 commits)")[![mastercoding](https://avatars.githubusercontent.com/u/306659?v=4)](https://github.com/mastercoding "mastercoding (1 commits)")[![alanpoulain](https://avatars.githubusercontent.com/u/10920253?v=4)](https://github.com/alanpoulain "alanpoulain (1 commits)")[![BrandonFlude](https://avatars.githubusercontent.com/u/6966633?v=4)](https://github.com/BrandonFlude "BrandonFlude (1 commits)")[![coExp](https://avatars.githubusercontent.com/u/86388?v=4)](https://github.com/coExp "coExp (1 commits)")

---

Tags

daemonphprabbitmqsupervisor-configurationsymfonyworker-configurationSymfony2rabbitmqsupervisorsymfony4symfony5symfony3supervisord

### Embed Badge

![Health badge](/badges/phobetor-rabbitmq-supervisor-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/phobetor-rabbitmq-supervisor-bundle/health.svg)](https://phpackages.com/packages/phobetor-rabbitmq-supervisor-bundle)
```

###  Alternatives

[php-amqplib/rabbitmq-bundle

Integrates php-amqplib with Symfony &amp; RabbitMq. Formerly emag-tech-labs/rabbitmq-bundle, oldsound/rabbitmq-bundle.

1.3k20.1M65](/packages/php-amqplib-rabbitmq-bundle)[xiidea/easy-audit

A Symfony Bundle To Log Selective Events. It is easy to configure and easy to customize for your need

91179.0k](/packages/xiidea-easy-audit)[supertag/gearman-bundle

Gearman bundle for Symfony2 to manage and monitor PHP gearman jobs and queue

1441.3k](/packages/supertag-gearman-bundle)

PHPackages © 2026

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