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 4y 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 today

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 7% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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

[chrisboulton/php-resque-scheduler

php-resque-scheduler is a PHP port of resque-scheduler, which adds support for scheduling items in the future to Resque.

2712.5M14](/packages/chrisboulton-php-resque-scheduler)[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1672.6M2](/packages/uecode-qpush-bundle)[schickling/queue-checker

Command to check the queue health status

275.8k](/packages/schickling-queue-checker)[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)
