ssipos90/correlate
Installation
Via composer package management:
$ composer require ssipos90/correlate
Usage
Not tested on Laravel, only Lumen.
Either
- register the service provider:
- Laravel: register the provider in your
config/app.phpfile:
Ssipos\Correlate\CorrelateServiceProvider::class,- Lumen: add this in your
bootstrap/app.phpfile:
$app->register(Ssipos\Correlate\CorrelateServiceProvider::class); - Laravel: register the provider in your
- add the middleware to whatever routes you want or globally:
- Laravel: add the middleware in your
app/Http/Kernel.phpfile; - Lumen: add the middleware in your
bootstrap/app.phpfile.
Ssipos\Correlate\Correlate::class - Laravel: add the middleware in your
TODO
- Add guzzle support for adding the header on forwarding requests
Related Packages
proemergotech/correlate-php-laravel
Middleware to handle incoming correlation id header for Laravel and Lumen
3,200
2
proemergotech/correlate-php-psr-7
PSR-7 middleware to handle incoming correlation id header for microservices.
394
1
proemergotech/correlate-php-core
Core interface package for correlate id generation for microservices writen in P...
7,127
0
proemergotech/correlate-php-monolog
Monolog processor for microservices to append correlation id to log messages.
7,052
1