jafaripur/php-microservice

Microservice server and client.

Maintainers

👁 jafaripur

Package info

github.com/jafaripur/php-microservice

Documentation

pkg:composer/jafaripur/php-microservice

Statistics

Installs: 132

Dependents: 5

Suggesters: 0

Stars: 2

Open Issues: 0

dev-master 2022-08-18 11:25 UTC

Requires

Suggests

Provides

None

Conflicts

None

Replaces

None

MIT 2068020abc4e2d04c8aa2938ac7bef2b6833393a

  • Araz J <mjafaripur.woop@yahoo.com>

rabbitmqAMQPMicroservice

This package is auto-updated.

Last update: 2026-06-18 20:04:24 UTC


README

👁 test
👁 Documentation Status

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

  • 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

The preferred way to install this package is through composer:

composer require jafaripur/php-microservice

Documentation

For more details, see full document http://php-microservice.readthedocs.io/.

Test

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

# Stop and remove created containers
docker-compose down