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 1w 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.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)

PHPackages © 2026

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