Download the PHP package zooxsmart/request-id without Composer
On this page you can find all versions of the php package zooxsmart/request-id. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zooxsmart/request-id
More information about zooxsmart/request-id
Files in zooxsmart/request-id
Download zooxsmart/request-id
More information about zooxsmart/request-id
Files in zooxsmart/request-id
Vendor zooxsmart
Package request-id
Short Description PHP middleware to add a Request ID header
License MIT
Homepage https://github.com/zooxsmart/request-id
Package request-id
Short Description PHP middleware to add a Request ID header
License MIT
Homepage https://github.com/zooxsmart/request-id
Please rate this library. Is it a good library?
Informations about the package request-id
Request ID Middleware for PHP
This middleware adds a Request ID header that can be used to trace back requests (logs).
It uses [Ramsey\Uuid(https://github.com/ramsey/uuid) library as default uuid generation.
Usage
Just add the middleware as one of the first in your application.
For example:
And the middleware will add a header to the request AND response
The options are:
- allow_override: If it's allowed to override a previouly added request id header. Default: false
- header_name: Header name. Default: X-Request-Id
Laminas
If you are using laminas-skeleton, you can copy config/los-request-id.global.php.dist
to config/autoload/los-request-id.global.php
and modify configuration as your needs.
All versions of request-id with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
ramsey/uuid Version ^4.1
psr/container Version ^1.0 || ^2.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
ramsey/uuid Version ^4.1
psr/container Version ^1.0 || ^2.0
The package zooxsmart/request-id contains the following files
Loading the files please wait ....