cline/correlation
最新稳定版本:3.0.1
Composer 安装命令:
composer require cline/correlation
包简介
Generate and attach correlation identifiers to Laravel request context
关键字:
README 文档
README
correlation
Generate and attach correlation identifiers to Laravel request context.
Requirements
Requires PHP 8.5+
Installation
composer require cline/correlation
Usage
// bootstrap/app.php (Laravel 12) ->withMiddleware(function (Middleware $middleware) { $middleware->append(\Cline\Correlation\Http\Middleware\AddCorrelationIdentifier::class); })
// config/correlation.php 'strategy' => 'idempotency', 'context_key' => 'correlationIdentifier',
The default idempotency strategy hashes $request->json() to produce a stable correlation identifier.
// Use Mint (optional) after: composer require cline/mint 'strategy' => 'mint', 'strategies' => [ 'mint' => [ 'class' => \Cline\Correlation\Strategies\MintStrategy::class, 'type' => 'ulid', ], ],
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-09