PHPackages                             jafaripur/php-microservice - 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. jafaripur/php-microservice

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

jafaripur/php-microservice
==========================

Microservice server and client.

2132PHP

Since Aug 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jafaripur/php-microservice)[ Packagist](https://packagist.org/packages/jafaripur/php-microservice)[ RSS](/packages/jafaripur-php-microservice/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

MicroService Server &amp; Client
================================

[](#microservice-server--client)

[![test](https://github.com/jafaripur/php-microservice/actions/workflows/run-test.yml/badge.svg)](https://github.com/jafaripur/php-microservice/actions/workflows/run-test.yml/badge.svg)[![Documentation Status](https://camo.githubusercontent.com/afafaad8d2b657cbc09a931987877118e32584318c4630df395f42dacdaaa033/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f7068702d6d6963726f736572766963652f62616467652f3f76657273696f6e3d6c6174657374)](https://php-microservice.readthedocs.io/en/latest/?badge=latest)

Standalone package to implement messaging between microservices nodes in PHP with both server and client. Server consumers listen to receive message and process, client pushing data to message queue to server consumers grab and process.

Features
--------

[](#features)

- Use PHP AMQP extension and change to Bunny library if `ext-amqp` not installed.
- PSR-3 compatible logging system.
- PSR-11 compatible service container for dependecy injection on processor file.
- Define processor class for responding to client calling methods.
- Define consumer class and attach processors for it for starting consuming.
- Async command sending.
- Each microservice could be a server or client and can talk to each other.
- Client for sending messages to queue.

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

[](#installation)

The preferred way to install this package is through composer:

```
composer require jafaripur/php-microservice
```

Documentation
-------------

[](#documentation)

For more details, see full document .

Test
----

[](#test)

```
# Run test
docker-compose up --build --exit-code-from micro micro

# Stop and remove created containers
docker-compose down
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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/1ef5abdd87a0fe17b2b42f341352ff12da0a000ef3a8df121e8eeabb82c859c4?d=identicon)[jafaripur](/maintainers/jafaripur)

---

Top Contributors

[![jafaripur](https://avatars.githubusercontent.com/u/5066430?v=4)](https://github.com/jafaripur "jafaripur (89 commits)")

---

Tags

amqpmessage-busmessage-queuemicroservicephpqueuerabbitmq

### Embed Badge

![Health badge](/badges/jafaripur-php-microservice/health.svg)

```
[![Health](https://phpackages.com/badges/jafaripur-php-microservice/health.svg)](https://phpackages.com/packages/jafaripur-php-microservice)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.6M31](/packages/league-geotools)[illuminate/bus

The Illuminate Bus package.

6046.3M542](/packages/illuminate-bus)[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1672.5M2](/packages/uecode-qpush-bundle)[belvg/module-sqs

N/A

1544.6k](/packages/belvg-module-sqs)[bsidev/bitrix-queue

Queues for Bitrix CMS

232.8k](/packages/bsidev-bitrix-queue)[mayconbordin/l5-stomp-queue

Stomp Queue Driver for Laravel 5

121.1k](/packages/mayconbordin-l5-stomp-queue)

PHPackages © 2026

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