PHPackages                             hachirobei/npp-rabbitmq-publisher - 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. hachirobei/npp-rabbitmq-publisher

ActiveLibrary[API Development](/categories/api)

hachirobei/npp-rabbitmq-publisher
=================================

A Laravel package for RabbitMQ integration

02PHP

Since Nov 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hachirobei/npp-rabbitmq-publisher)[ Packagist](https://packagist.org/packages/hachirobei/npp-rabbitmq-publisher)[ RSS](/packages/hachirobei-npp-rabbitmq-publisher/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel RabbitMQ Package
========================

[](#laravel-rabbitmq-package)

This package provides a simple and effective way to integrate RabbitMQ into Laravel applications. It offers easy setup for RabbitMQ connections and allows you to publish messages to RabbitMQ queues directly from Laravel.

Features
--------

[](#features)

- Easy setup and configuration of RabbitMQ with Laravel.
- Facilitates publishing messages to RabbitMQ queues.
- Supports dynamic queue configuration.
- Utilizes Laravel's built-in features for seamless integration.

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

[](#installation)

To install the package, run the following command in your Laravel project:

bash

```
composer require hachirobei/npp-rabbitmq-publisher

```

Configuration

After installation, publish the configuration file with:

```
php artisan vendor:publish --provider="hachirobei\NPPRabbitMQPublisher\RabbitMQServiceProvider"

```

This will publish a rabbitmq.php config file in your config directory. You can adjust the configuration as needed.

Environment Setup

Ensure your .env file contains the necessary settings for RabbitMQ:

```
RABBITMQ_HOST=your-rabbitmq-host
RABBITMQ_PORT=5672
RABBITMQ_USER=your-username
RABBITMQ_PASSWORD=your-password

```

To ensure the Laravel RabbitMQ package works correctly, your PHP environment must meet the following requirements:

PHP Sockets Extension: This extension is necessary for network communication with RabbitMQ. To enable it, ensure the following line is present and uncommented in your php.ini file:

```
extension=sockets

```

If you're unsure whether this extension is enabled, create a PHP file with and access it through your web server to check your PHP configuration.

PHP BCMath Extension: Required for precise floating-point arithmetic operations. To enable it, ensure this line is in your php.ini file:

```
extension=bcmath

```

You can verify if it's enabled through the phpinfo() output as well.

After making any changes to php.ini, remember to restart your web server for the changes to take effect.

Usage

Here is a basic example of how to use the package:

```
use hachirobei\NPPRabbitMQPublisher\RabbitMQFacade as RabbitMQ;

$message = 'Your message here';
$queueName = 'your_queue_name';

RabbitMQ::publish($message, $queueName);

```

Make sure to replace $message and $queueName with your actual message and queue name.

Contributing

Contributions to the package are welcome! Please feel free to submit pull requests or create issues for bugs and feature requests.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd3401c0506a7300f195ffb8803cc35eda5bc09548ca23ddf49f1d2f3aedefdd?d=identicon)[hachirobei](/maintainers/hachirobei)

---

Top Contributors

[![hachirobei](https://avatars.githubusercontent.com/u/13020471?v=4)](https://github.com/hachirobei "hachirobei (3 commits)")

### Embed Badge

![Health badge](/badges/hachirobei-npp-rabbitmq-publisher/health.svg)

```
[![Health](https://phpackages.com/badges/hachirobei-npp-rabbitmq-publisher/health.svg)](https://phpackages.com/packages/hachirobei-npp-rabbitmq-publisher)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k16](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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