quillphp/request-id

Quill PHP request-id middleware

Maintainers

Package info

github.com/quillphp/quill-request-id

pkg:composer/quillphp/request-id

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-04-06 10:03 UTC

This package is auto-updated.

Last update: 2026-04-06 11:56:10 UTC


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