quillphp/request-id
Composer 安装命令:
composer require quillphp/request-id
包简介
Quill PHP request-id middleware
README 文档
README
Request ID middleware for the Quill PHP Framework. Injects a unique identifier into every request/response for distributed tracing and log correlation.
Installation
composer require quillphp/request-id
Usage
use Quill\RequestId\RequestId; $app->use(RequestId::new([ 'header' => 'X-API-Request-ID', 'context_key' => 'trace_id', ]));
Configuration
| Option | Default | Description |
|---|---|---|
| `context_key` | `'request_id'` | Context key to store the ID in the Request object. |
| `generator` | `callable` | Optional: custom UUID generator. |
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-06