PHPackages                             farshidrezaei/larabbitmq - 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. farshidrezaei/larabbitmq

ActiveLibrary[API Development](/categories/api)

farshidrezaei/larabbitmq
========================

Laravel RabbitMq integration.

1.0.6(4y ago)2221MITPHP

Since May 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/farshidrezaei/larabbitmq)[ Packagist](https://packagist.org/packages/farshidrezaei/larabbitmq)[ RSS](/packages/farshidrezaei-larabbitmq/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Larabbitmq, RabbitMq Integration for Laravel
============================================

[](#larabbitmq-rabbitmq-integration-for-laravel)

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

[](#installation)

### composer

[](#composer)

```
composer require farshidrezaei/larabbitmq
```

Larabbitmq environment
----------------------

[](#larabbitmq-environment)

Set bellow config to `.env` file with your installed rabbitmq credential

```
LARABBITMQ_RABBIT_HOST=
LARABBITMQ_RABBIT_PORT=
LARABBITMQ_RABBIT_USERNAME=
LARABBITMQ_RABBIT_PASSWORD=
```

Config
------

[](#config)

Call bellow command to publish config file:

```
php artisan vendor:publish --provider="FarshidRezaei\Larabbitmq\Providers\LarabbitmqServiceProvider" --tag="config"
```

Usage:
------

[](#usage)

### publish:

[](#publish)

You can use Larabbitmq Facade easily to publish messages on specified queue.

```
use FarshidRezaei\Larabbitmq\Facades\Larabbitmq;

Larabbitmq::publish( 'default_queue','default_exchange','simple_text_message' );
```

---

### consume:

[](#consume)

For consuming a queue you should create consume handler class and specified it for a queue in `config/larabbitmq.php` .

call bellow command to create new consume handler class:

```
php artisan larabbitmq:make-consume-handler ExampleConsumeHandler
```

Then ExampleConsumeHandler.php class will create in app/LarabbitmqConsumeHandlers. you must add this to config/larabbitmq.php like this:

```
// config/larabbitmq.php

  // ...

  'consume-handlers' => [
    'default_queue'=>App\LarabbitmqConsumeHandlers\ExampleConsumeHandler::class
  ]

  // ...
```

Now you can call bellow command to consume specifed queue:

```
php artisan larabbitmq:consume --queue=default_queue
```

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

6

Last Release

1463d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39159567f8a54c452a911b722d524b66bd673c4cb02a4e989eaa8eb29d84eee0?d=identicon)[farshidrezaei](/maintainers/farshidrezaei)

---

Top Contributors

[![farshidrezaei](https://avatars.githubusercontent.com/u/16887867?v=4)](https://github.com/farshidrezaei "farshidrezaei (7 commits)")

### Embed Badge

![Health badge](/badges/farshidrezaei-larabbitmq/health.svg)

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[google/common-protos

Google API Common Protos for PHP

173103.7M49](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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