PHPackages                             innmind/amqp-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. [API Development](/categories/api)
4. /
5. innmind/amqp-bundle

AbandonedArchivedLibrary[API Development](/categories/api)

innmind/amqp-bundle
===================

Symfony bundle to integrate AMQP library

1.5.1(8y ago)097MITPHPPHP ~7.1

Since Sep 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Innmind/AMQPBundle)[ Packagist](https://packagist.org/packages/innmind/amqp-bundle)[ Docs](http://github.com/Innmind/AMQPBundle)[ RSS](/packages/innmind-amqp-bundle/feed)WikiDiscussions develop Synced 2w ago

READMEChangelogDependencies (10)Versions (11)Used By (0)

AMQPBundle
==========

[](#amqpbundle)

`master``develop`[![Scrutinizer Code Quality](https://camo.githubusercontent.com/702c0b8e96ff78cba37bdf55562ad96a43a5b5eaf39b9df3ec2cbbedce6263dc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f496e6e6d696e642f414d515042756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Innmind/AMQPBundle/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/badc6196705494d76d93983bfcc977b7ac0ce7c71b1e6c9b6602720c5b16d7fa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f496e6e6d696e642f414d515042756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/Innmind/AMQPBundle/?branch=develop)[![Code Coverage](https://camo.githubusercontent.com/9d651d504d7931e290cab8754b1f47b3cbacc587e4638ef8d608d1c5f54bf20a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f496e6e6d696e642f414d515042756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Innmind/AMQPBundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/715d20dd7147e77ecc7fe1ab1156ef2ae1909f24b6de75b63e41f56664c4e0d0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f496e6e6d696e642f414d515042756e646c652f6261646765732f636f7665726167652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/Innmind/AMQPBundle/?branch=develop)[![Build Status](https://camo.githubusercontent.com/8e6eb3610b15cb19e194798048ca5daf738ef782788d5b0dfd0e29c824b3ae54/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f496e6e6d696e642f414d515042756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Innmind/AMQPBundle/build-status/master)[![Build Status](https://camo.githubusercontent.com/4658f9ba0dc12e5cf2bd90eb7eafc736ee9126baa5622fa00fd6e03254b395c8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f496e6e6d696e642f414d515042756e646c652f6261646765732f6275696c642e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/Innmind/AMQPBundle/build-status/develop)Installation
------------

[](#installation)

```
composer require innmind/amqp-bundle
```

Enable the bundle by adding the following line in your `AppKernel.php` of your project:

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Innmind\AMQPBundle\InnmindAMQPBundle,
        );
        // ...
    }
    // ...
}
```

Then you need to declare the exchanges and queues you want to use:

```
innmind_amqp:
    server:
        host: localhost # default
        port: 5672 # default
        user: guest # default
        password: guest # default
        vhost: / # default
    exchanges:
        urls:
            type: direct
    queues:
        crawler:
            consumer: my_consumer_service_id
    bindings:
        -
            exchange: urls
            queue: crawler
```

Upon usage this will automatically create the exchange, the queue and the binding between the two in the AMQP server.

Usage
-----

[](#usage)

In order to publish a new message you can simply do:

```
use Innmind\AMQP\Model\Basic\Message\Generic;
use Innmind\Immutable\Str;

$container->get('innmind.amqp.producer.urls')(new Generic(new Str('http://example.com/')));
```

This will publish a message with the payload `http://example.com/` to the exchange `urls`.

Then to consume messages you can either do it by code using the AMQP client service `innmind.amqp.client` or via running the command `innmind:amqp:get` or `innmind:amqp:consume`. Both commands take the queue name as first argument (in our case it would be `crawler`); `innmind:amqp:consume` can take a second argument to declare the maximum number of messages you want to the command to consume.

Examples:

```
bin/console innmind:amqp:get crawler # process 1 message
#or
bin/console innmind:amqp:consume crawler # runs forever
#or
bin/console innmind:amqp:consume crawler 42 # process 42 messages
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~9 days

Total

9

Last Release

3136d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/innmind-amqp-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-amqp-bundle/health.svg)](https://phpackages.com/packages/innmind-amqp-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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