New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

proemergotech/correlate-php-laravel

Middleware to handle incoming correlation id header for Laravel and Lumen
3,200 2

Larablocks Analysis

proemergotech/correlate-php-laravel works with Laravel 5 (latest release 1.0.1, Feb 2, 2018), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Feb 2, 2018)
  • 0 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Feb 2, 2018.
  • No releases in the last 12 months.
  • First released: Feb 2, 2018.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require proemergotech/correlate-php-laravel
Latest Version:1.0.1
Laravel:5
License:MIT
Last Updated:Feb 2, 2018
Links: GitHub  ·  Packagist
Maintainer: shakahl

correlate-php-laravel


Overview

It's very difficult to track a request across the system when we are working with microservices. We came out with a solution for that. We generate a unique version 4 uuid for every request and every service passes this id via request headers to other services. We call this correlation ID.

Packages

Installation

  • Install via composer
composer require proemergotech/correlate-php-laravel

Setup for Laravel 5

Add the ProEmergotech\Correlate\Laravel\LaravelCorrelateMiddleware middleware to the $middleware property of your app/Http/Kernel.php class.

Setup for Lumen 5

Add service provider to bootstrap/app.php in your Lumen project.

// bootstrap/app.php

$app->register(\ProEmergotech\Correlate\Laravel\LaravelCorrelateServiceProvider::class);

Usage

This middleware automatically adds correlation id (coming from request header) to every log message. There are some macros added to the request object if you want to work with correlation id.

Using macros via request object:

if ($request->hasCorrelationId()) {
  $cid = $request->getCorrelationId();
}
// or if you can change the ID
$request->setCorrelationId(\ProEmergotech\Correlate\Correlate::id());

Contributing

See CONTRIBUTING.md file.

Credits

This package was developed by Soma Szélpál at Pro Emergotech Ltd..

Additional author is Miklós Boros at Pro Emergotech Ltd..

License

This project is released under the MIT License.

Related Packages

proemergotech/correlate-php-core

Core interface package for correlate id generation for microservices writen in P...

7,216 0
proemergotech/correlate-php-psr-7

PSR-7 middleware to handle incoming correlation id header for microservices.

394 1
proemergotech/correlate-php-monolog

Monolog processor for microservices to append correlation id to log messages.

7,140 1
proemergotech/correlate-php-guzzle

Adds correlation ID to Guzzle requests.

2,777 1
ssipos90/correlate

Add correlation ID to requests to use in micro services logs aggregating.

75 2

Version History

Version Released Laravel License
1.0.1 ^5.4 MIT