PHPackages                             psamatt/service-bus-lite - 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. psamatt/service-bus-lite

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

psamatt/service-bus-lite
========================

Service Bus for PHP

1.2(11y ago)124.5k1MITPHPPHP &gt;=5.3.2

Since Jan 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/psamatt/ServiceBusLite)[ Packagist](https://packagist.org/packages/psamatt/service-bus-lite)[ Docs](http://github.com/psamatt/ServiceBusLite)[ RSS](/packages/psamatt-service-bus-lite/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (5)Used By (1)

Service Bus Lite
================

[](#service-bus-lite)

Service Bus Lite is a PHP implementation of the popular NServiceBus in C#, you can find more information about a Service Bus on [Wikipedia](http://en.wikipedia.org/wiki/Enterprise_service_bus). This has been written with the influence of the popular [ShortBus](https://github.com/mhinze/ShortBus) library in C#.

\## Introduction

The idea of a service bus in a MVC Architecture is essentially a messaging queue that sits between the application logic (Controller) and your business logic (Domain). Upon firing requests at the message bus in the form of a Query or a Command, a matching Handler will be found and executed.

Your Handler will do your logic dependant on the type of request:

- Query - A query is your read layer and will request information such as fetching all users who are from a specific country. This should be a layer that talks to your persistance or cache layer and should NEVER do write actions.
- Command - A command is your write layer and will send information to your application such as creating records in your persistance layer, writing to logs etc.

### How do I get started?

[](#how-do-i-get-started)

Using [Composer](http://getcomposer.org/doc/00-intro.md), add the following into your composer.json

```
{
    "require": {
        psamatt/service-bus-lite": "dev-master"
    }
}
```

Now tell composer to download the bundle by running the following command:

`$ php composer.phar update psamatt/service-bus-lite`

### Examples

[](#examples)

To find how to use this library, check the [examples](https://github.com/psamatt/ServiceBusLite/tree/master/example).

### Integrated into...

[](#integrated-into)

This library has been integrated into the following PHP Frameworks:

- Symfony2 using [ServiceBusLiteBundle](https://github.com/psamatt/ServiceBusLiteBundle)

If you have integrated this into an unlisted Framework, then get in touch.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

3

Last Release

4269d ago

### Community

Maintainers

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

---

Tags

messagingesbservicebusnservicebusshortbus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/psamatt-service-bus-lite/health.svg)

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

###  Alternatives

[queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

48030.5M87](/packages/queue-interop-queue-interop)[bunny/bunny

Performant pure-PHP AMQP (RabbitMQ) non-blocking ReactPHP library

7426.5M37](/packages/bunny-bunny)[enqueue/enqueue-bundle

Message Queue Bundle

27615.6M38](/packages/enqueue-enqueue-bundle)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[enqueue/amqp-tools

Message Queue Amqp Tools

14721.1M12](/packages/enqueue-amqp-tools)[friendsofsymfony/message-bundle

Provides user-to-user messaging features for your Symfony application.

356872.3k5](/packages/friendsofsymfony-message-bundle)

PHPackages © 2026

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