PHPackages                             outhebox/laravel-ibmq - 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. outhebox/laravel-ibmq

ActiveLibrary

outhebox/laravel-ibmq
=====================

This is my package laravel-ibmq

0.1(1y ago)041MITPHPPHP ^8.2

Since Sep 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MohmmedAshraf/laravel-ibmq)[ Packagist](https://packagist.org/packages/outhebox/laravel-ibmq)[ Docs](https://github.com/MohmmedAshraf/laravel-ibmq)[ GitHub Sponsors](https://github.com/MohmmedAshraf)[ RSS](/packages/outhebox-laravel-ibmq/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (2)Used By (0)

Laravel IBMQ
============

[](#laravel-ibmq)

 [Features](#features) | [Requirements](#requirements) | [Installation](#installation) | [Usage](#usage) | [Changelog](#changelog)

[![Latest Stable Version](https://camo.githubusercontent.com/2b6b497a7587d65485ce3325e20a111d50f878c053e6f8f08412a8970ede7526/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f75746865626f782f6c61726176656c2d69626d71)](https://packagist.org/packages/outhebox/laravel-ibmq)[![Tests](https://github.com/MohmmedAshraf/laravel-ibmq/workflows/run-tests/badge.svg)](https://github.com/MohmmedAshraf/laravel-ibmq/actions?query=workflow%3Arun-tests)[![Total Downloads](https://camo.githubusercontent.com/40447c34111b13045e53ef4513e08b11824c3395958f2a927abcc0331bb1b42c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f75746865626f782f6c61726176656c2d69626d71)](https://packagist.org/packages/outhebox/laravel-ibmq)[![PHP from Packagist](https://camo.githubusercontent.com/0c01b80d6ae115be51ac5c9b4be8183a8e40ca01b4f7cf7a737aea73740dafc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6f75746865626f782f6c61726176656c2d69626d712e737667)](https://packagist.org/packages/outhebox/laravel-ibmq)[![Laravel Version](https://camo.githubusercontent.com/38bf39105d63f3005c0dc987a7edafc525c833592896341f5c1c74d111641ff1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302e782d627269676874677265656e2e737667)](https://packagist.org/packages/outhebox/laravel-ibmq)

A Laravel package to connect with IBM MQ, allowing for sending and receiving messages. This package supports multiple queues for inbound and outbound messages, with advanced error handling and logging.

Features
--------

[](#features)

- Easy-to-use API for interacting with IBM MQ.
- Separate queues for inbound and outbound messaging.
- Fluent API for sending and receiving messages.
- Configurable via environment variables.

Requirements
------------

[](#requirements)

- PHP 8.1+ with `ext-sockets` extension enabled
- Laravel 10 or higher
- IBM MQ instance

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

[](#installation)

You can install the package via composer:

```
composer require outhebox/laravel-ibmq
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-ibmq-config"
```

This is the contents of the published config file:

```
return [
    'host' => env('IBM_MQ_HOST', 'your-host'),
    'port' => env('IBM_MQ_PORT', 1414),
    'queue_manager' => env('IBM_MQ_QUEUE_MANAGER', 'your-queue-manager'),
    'username' => env('IBM_MQ_USERNAME', null),
    'password' => env('IBM_MQ_PASSWORD', null),

    'queues' => [
        'inbound' => env('IBM_MQ_INBOUND_QUEUE', 'your-inbound-queue'),
        'outbound' => env('IBM_MQ_OUTBOUND_QUEUE', 'your-outbound-queue'),
    ],
];
```

Usage
-----

[](#usage)

### Sending Messages

[](#sending-messages)

```
use Outhebox\LaravelIBMQ\Facades\LaravelIBMQ;
use Outhebox\LaravelIBMQ\Exceptions\IBMQException;

$ibmQueue = new LaravelIBMQ();

try {
    $ibmQueue->sendMessage('Hello, IBM MQ!');
    echo "Message sent successfully!";
} catch (IBMQException $e) {
    echo "Failed to send message: " . $e->getMessage();
}
```

### Listening to Messages

[](#listening-to-messages)

```
use Outhebox\LaravelIBMQ\Facades\LaravelIBMQ;
use Outhebox\LaravelIBMQ\Exceptions\IBMQException;

$ibmQueue = new LaravelIBMQ();

try {
    $ibmQueue->listenToMessages(function ($messageBody) {
        echo "Received message: " . $messageBody;
    });
} catch (IBMQException $e) {
    echo "Failed to receive messages: " . $e->getMessage();
}
```

Closing Connections
-------------------

[](#closing-connections)

Connections are automatically closed when the object is destroyed or the application ends. However, you can explicitly close the connection if needed:

```
use Outhebox\LaravelIBMQ\Facades\LaravelIBMQ;

$ibmQueue = new LaravelIBMQ();

$ibmQueue->close();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mohamed Ashraf](https://github.com/MohmmedAshraf)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

603d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fafcf25aad612ce33476889bc889bafe60e215d045c23778007218e475c8e47?d=identicon)[MohammedAshraf](/maintainers/MohammedAshraf)

---

Top Contributors

[![MohmmedAshraf](https://avatars.githubusercontent.com/u/44909285?v=4)](https://github.com/MohmmedAshraf "MohmmedAshraf (1 commits)")

---

Tags

laravelOutheBoxlaravel-ibmq

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/outhebox-laravel-ibmq/health.svg)

```
[![Health](https://phpackages.com/badges/outhebox-laravel-ibmq/health.svg)](https://phpackages.com/packages/outhebox-laravel-ibmq)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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