Microservice Toolset is a PHP library designed to support microservices architecture by providing a set of tools including a logger and an HTTP client that complies to the JSON-RPC standard. Each service call generates a log entry for both the request sent and the response received. These entries include a context (which can be extended) that contains a correlation ID and a principal by default. Microservice Toolset is compatible with Etcd and Consul for service registration and discovery.
- PHP 8.2 or higher
- Dependencies:
- dcarbone/php-consul-api: ^2.0
- linkorb/etcd-php: ^1.3
- monolog/monolog: ^3.7
- JSON-RPC 2.0 Compliant HTTP Client: Easily make JSON-RPC calls between services.
- Advanced Logging: Monolog handler for structured logging.
- Service Discovery: Integrates with Etcd, Consul or json file for service registration and discovery.
You can install the package via Composer
composer require simonmacor/microservice-toolset
This project is licensed under the MIT License - see the LICENSE file for details.
This project includes library php-consul-api that are licensed under the Apache License 2.0. You can find a copy of the Apache License 2.0 here.
While the majority of the code in this project is under the MIT License, the parts that are derived from or include code licensed under the Apache License 2.0 will continue to be governed by the terms of that license.
Please ensure that you adhere to the requirements of both licenses when using, modifying, or distributing the code.