PHPackages                             ngorder/q - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ngorder/q

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ngorder/q
=========

Simple php-amqplib wrapper for Laravel

v1.3.5(4y ago)0126MITPHPPHP ^7.4|^8.0

Since Sep 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/faizalv/ngorder-q)[ Packagist](https://packagist.org/packages/ngorder/q)[ Docs](https://github.com/faizalv/ngorder-q)[ RSS](/packages/ngorder-q/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

Ngorder Q
=========

[](#ngorder-q)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0ee12fcbe80a64f561a5ea9724cca36c3495859a50a5220cb7a5aaf65279ebdc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e676f726465722f712e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ngorder/q)[![Total Downloads](https://camo.githubusercontent.com/df90669d5f6ce8a6a96f515ca2d6cfc52c8a3fe72d8a968551a9bed33e299fa0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e676f726465722f712e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ngorder/q)

Simple Laravel wrapper for php-amqplib/php-amqplib

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

[](#installation)

Run composer:

```
composer require ngorder/q
```

Publish the config file and service provider with this Artisan command

```
php artisan q:install
```

Two files will be generated, a config file located in `config/q.php` and a provider located in `app/Providers/QServiceProvider.php`

Usage
-----

[](#usage)

First, make sure to update the configuration file.

### Publishing a Message

[](#publishing-a-message)

The `Message` facade provides functionality to publish a message, you can publish a message by calling the `publish` method, which needs 2 parameters: routing key and the message you want to send, it can be an array or a string.

```
\Ngorder\Q\Facades\NgorderQ::publish('test.route', [
            'message' => 'Hello World'
 ]);
```

The `publish` method will take the configuration from `app/q.php` to create an exchange and a queue if it does not exist yet.

#### Delaying a Message

[](#delaying-a-message)

```
\Ngorder\Q\Facades\NgorderQ::delay(2)->publish('test.route', [
            'message' => 'Hello World'
 ]);
```

Delay a message (in minutes) before it gets consumed by the consumer.

### Routing

[](#routing)

You can attach a method to handle specific routing key in `QServiceProvider`

```
    protected $routing = [
        'hello.*' => [MyConsumer::class, 'handleWildcard'],
        'test.key' => [AnotherConsumer::class, 'handleIt'],
        'another.key' => [
            [MultiConsumer::class, 'fun1'],
            [MultiConsumer::class, 'fun2']
        ]
    ];
```

Or an invokable class

```
    protected $routing = [
        'some.key' => ThisIsInvokable::class,
    ];
```

### Consuming

[](#consuming)

To run consumer, first make sure the routing key is registered within the `QServiceProvider`. You can run this command after that:

```
php artisan q:consume my.routing.key
```

Available options:

```
--tries=3
```

Maximal number of tries when a message failed to consume.

```
--max-memory=128
```

Maximum memory usage.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~23 days

Total

11

Last Release

1585d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3633eb8c6026050c71e7878d2f58b99bc60282076d6adf0e10aa5021f51b49f2?d=identicon)[faizalv](/maintainers/faizalv)

---

Top Contributors

[![faizalv](https://avatars.githubusercontent.com/u/46194430?v=4)](https://github.com/faizalv "faizalv (18 commits)")

---

Tags

qngorder

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ngorder-q/health.svg)

```
[![Health](https://phpackages.com/badges/ngorder-q/health.svg)](https://phpackages.com/packages/ngorder-q)
```

###  Alternatives

[danharrin/livewire-rate-limiting

Apply rate limiters to Laravel Livewire actions.

40423.1M27](/packages/danharrin-livewire-rate-limiting)[mateusjunges/laravel-kafka

A kafka driver for laravel

7163.1M17](/packages/mateusjunges-laravel-kafka)[ricorocks-digital-agency/soap

A SOAP client that provides a clean interface for handling requests and responses.

4281.8M5](/packages/ricorocks-digital-agency-soap)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)[illuminatech/data-provider

Allows easy build for DB queries from API requests

4413.3k](/packages/illuminatech-data-provider)

PHPackages © 2026

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