PHPackages                             kain/simplify-amqp - 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. kain/simplify-amqp

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

kain/simplify-amqp
==================

Simplify amqp operation library php-amqplib / php-amqplib

2.1(6y ago)1862MITPHPPHP &gt;=7.4

Since Dec 18Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/kainonly/simplify-amqp)[ Packagist](https://packagist.org/packages/kain/simplify-amqp)[ RSS](/packages/kain-simplify-amqp/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (2)

Simplify AMQP
-------------

[](#simplify-amqp)

Simplify amqp operation library php-amqplib / php-amqplib

[![Packagist Version](https://camo.githubusercontent.com/3e9cf48423286c734b3d5ce39bef60f4ee4fe6738f40ac6837cc4df5aee66056/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b61696e2f73696d706c6966792d616d71702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kain/simplify-amqp)[![Travis (.org)](https://camo.githubusercontent.com/a2db6a009390a61f79df9392b5b35b2225a8da97d103a631d7f20a48c19e014b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b61696e6f6e6c792f73696d706c6966792d616d71702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kainonly/simplify-amqp)[![Coveralls github](https://camo.githubusercontent.com/af13f553d42ae0ce282949596c93cd150678ea03f68f35e420f641366a689d50/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f6b61696e6f6e6c792f73696d706c6966792d616d71702e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/kainonly/simplify-amqp)[![PHP from Packagist](https://camo.githubusercontent.com/c1a7786fb6f177aa55fc9ac339118b61019487f637210dc674e7e7cd72971bc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b61696e2f73696d706c6966792d616d71702e7376673f636f6c6f723d626c7565267374796c653d666c61742d737175617265)](https://github.com/kainonly/simplify-amqp)[![Packagist](https://camo.githubusercontent.com/7c796b64517fcd9841dc1fbee411ed4957a9c7827ae5e8da33a74b53fc7d5aac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b61696e2f73696d706c6966792d616d71702e7376673f636f6c6f723d626c7565267374796c653d666c61742d737175617265)](https://packagist.org/packages/kain/simplify-amqp)[![License](https://camo.githubusercontent.com/98058d4afcbce0c606f3ec87fe38a8dd81df7353f0af5f174bbeaf1533cfe142/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b61696e2f73696d706c6966792d616d71702e7376673f636f6c6f723d626c7565267374796c653d666c61742d737175617265)](https://github.com/kainonly/simplify-amqp/blob/master/LICENSE)

#### Setup

[](#setup)

```
composer require kain/simplify-amqp
```

#### Usage

[](#usage)

Create an AMQP client

```
use Simplify\AMQP\AMQPClient;
use Simplify\AMQP\AMQPManager;

$client = new AMQPClient(
    'localhost',
    5672,
    'guest',
    'guest',
    '/',
    [
        'insist' => false,
        'login_method' => 'AMQPLAIN',
        'login_response' => null,
        'locale' => 'zh_CN',
        'connection_timeout' => 5.0,
        'read_write_timeout' => 5.0,
        'context' => null,
        'keepalive' => true,
        'heartbeat' => 3.0,
        'channel_rpc_timeout' => 5.0,
        'ssl_protocol' => null
    ]
);

$client->channel(function (AMQPManager $manager) {
    // operate...
});
```

Create exchange and queue, and then bind them together

```
use Simplify\AMQP\AMQPClient;
use Simplify\AMQP\AMQPManager;
use Simplify\AMQP\Common\ExchangeCreateOption;
use Simplify\AMQP\Common\ExchangeType;
use Simplify\AMQP\Common\QueueCreateOption;

$client = new AMQPClient('localhost',5672,'guest','guest');

$client->channel(function (AMQPManager $manager) {
    $exchangeOption = new ExchangeCreateOption();
    $exchangeOption->setType(ExchangeType::DIRECT());
    $exchangeOption->setDurable(true);
    $manager->exchange('myexchange')->create($exchangeOption);

    $queueOption = new QueueCreateOption();
    $queueOption->setDurable(true);
    $queueOption->setMaxLength(3000);
    $queueOption->setMaxLengthBytes(1024*64);
    $queue = $manager->queue('myqueue');
    $queue->create($queueOption);
    $queue->bind('myexchange','');
});
```

> For more examples, please see unit testing

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance46

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~66 days

Total

3

Last Release

2209d ago

Major Versions

1.0 → 2.02020-04-16

PHP version history (2 changes)1.0PHP &gt;=7.2

2.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9986159?v=4)[Kain](/maintainers/kainonly)[@kainonly](https://github.com/kainonly)

---

Top Contributors

[![kainonly](https://avatars.githubusercontent.com/u/9986159?v=4)](https://github.com/kainonly "kainonly (94 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kain-simplify-amqp/health.svg)

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

###  Alternatives

[vladimir-yuldashev/laravel-queue-rabbitmq

RabbitMQ driver for Laravel Queue. Supports Laravel Horizon.

2.1k9.8M30](/packages/vladimir-yuldashev-laravel-queue-rabbitmq)[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)[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2752.3M7](/packages/bschmitt-laravel-amqp)[enqueue/amqp-lib

Message Queue Amqp Transport

1078.5M61](/packages/enqueue-amqp-lib)[jwage/phpamqplib-messenger

Symfony messenger transport for the php-amqplib/php-amqplib library.

84149.7k1](/packages/jwage-phpamqplib-messenger)[mikemadisonweb/yii2-rabbitmq

Wrapper based on php-amqplib to incorporate messaging in your Yii2 application via RabbitMQ. Inspired by RabbitMqBundle for Symfony 2, really awesome package.

74262.1k1](/packages/mikemadisonweb-yii2-rabbitmq)

PHPackages © 2026

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