PHPackages                             reedtechus/azure-service-bus-laravel - 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. reedtechus/azure-service-bus-laravel

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

reedtechus/azure-service-bus-laravel
====================================

Provides an interface to Azure's Service Bus.

v0.2.1(3y ago)3153[1 issues](https://github.com/reedtechus/azure-service-bus-laravel/issues)[3 PRs](https://github.com/reedtechus/azure-service-bus-laravel/pulls)MITPHPPHP ^8.1

Since Jan 24Pushed 2y agoCompare

[ Source](https://github.com/reedtechus/azure-service-bus-laravel)[ Packagist](https://packagist.org/packages/reedtechus/azure-service-bus-laravel)[ Docs](https://github.com/reedtechus/azure-service-bus-laravel)[ RSS](/packages/reedtechus-azure-service-bus-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (15)Versions (6)Used By (0)

[![logo-print-hd-transparent](https://user-images.githubusercontent.com/77644584/200294033-8c4d0980-56ba-4443-96f0-9dde0753a4df.png)](https://user-images.githubusercontent.com/77644584/200294033-8c4d0980-56ba-4443-96f0-9dde0753a4df.png)

Azure Service Bus SDK for Laravel / PHP
=======================================

[](#azure-service-bus-sdk-for-laravel--php)

Provides an interface to Azure's Service Bus.
---------------------------------------------

[](#provides-an-interface-to-azures-service-bus)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c4403f8aace8bab52199f3bf38654c04d5f7e665d053425a232c4fe2c6902bb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726565647465636875732f617a7572652d736572766963652d6275732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/reedtechus/azure-service-bus-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c82e567cd8c497d5cad98f825843843376e8a9898a681d785c3ce37581242474/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726565647465636875732f617a7572652d736572766963652d6275732d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/reedtechus/azure-service-bus-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/84e28716041abda6fea494036e1c636fbe4c7eebd15638cc2a9c3d414320f05b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726565647465636875732f617a7572652d736572766963652d6275732d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/reedtechus/azure-service-bus-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/a06dc8956dc0e825863792ca8e56a187cc49d00ff0805a0e3884b4981db89b5d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726565647465636875732f617a7572652d736572766963652d6275732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/reedtechus/azure-service-bus-laravel)

This package provides an interface to Azure Service Bus.

It implements the [Azure Service Bus REST API](https://docs.microsoft.com/en-us/rest/api/servicebus/) via [Saloon v2](https://github.com/Sammyjo20/Saloon/tree/v2).

> ⚠️ **Experimental:** This package is still in development and is not ready for production use. Breaking changes can still occur **without** a major version change until **1.0.0**.

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

[](#installation)

You can install the package via composer:

```
composer require reedtechus/azure-service-bus-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="azure-service-bus-laravel-config"
```

This is the contents of the published config file:

```
return [
	'tenant' => env('SERVICE_BUS_TENANT'),
	'namespace' => env('SERVICE_BUS_NAMESPACE'),
	'cache_driver' => env('SERVICE_BUS_CACHE_DRIVER', 'redis'),
];
```

Usage
-----

[](#usage)

### Send a Message to a Queue or Topic

[](#send-a-message-to-a-queue-or-topic)

```
AzureServiceBus::send('queue_or_topic_name', ['payload_data' => 'goes_here'])
```

### Receive a Message from a Queue

[](#receive-a-message-from-a-queue)

Peek (Non-destructive read) a message from a queue:

```
AzureServiceBus::peek('queue_name')
```

Peek (Non-destructive read) a message from a topic (via subscription):

```
AzureServiceBus::peek('queue_name', 'subscription_name')
```

### Destructive Read

[](#destructive-read)

The above `peek` examples can be replaced with `pop` to perform a destructive read and remove the message from the queue / subscription.

Pop (Destructive read) a message from a queue:

```
AzureServiceBus::pop('queue_name')
```

Pop (Destructive read) a message from a topic (via subscription):

```
AzureServiceBus::pop('queue_name', 'subscription_name')
```

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)

- [Chris Reed](https://github.com/chrisreedio)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.2% 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 ~3 days

Total

3

Last Release

1252d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77644584?v=4)[Chris Reed](/maintainers/chrisreedio)[@chrisreedio](https://github.com/chrisreedio)

---

Top Contributors

[![chrisreedio](https://avatars.githubusercontent.com/u/77644584?v=4)](https://github.com/chrisreedio "chrisreedio (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

azurelaravelphpservice-buslaravelazureservice-busreedtechusazure-service-bus-laravel

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/reedtechus-azure-service-bus-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/reedtechus-azure-service-bus-laravel/health.svg)](https://phpackages.com/packages/reedtechus-azure-service-bus-laravel)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M101](/packages/dedoc-scramble)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274327.0k8](/packages/croustibat-filament-jobs-monitor)

PHPackages © 2026

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