定制 rstgroup/request-id-module 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rstgroup/request-id-module

最新稳定版本:3.0.0

Composer 安装命令:

composer require rstgroup/request-id-module

包简介

无描述信息

README 文档

README

Build Status

This module provide integration possibility to generate and add request id to request/response's header in Laminas applications. If you want more information, how request id is generating, check dependent project php-middleware/request-id.

Installation

composer require rstgroup/request-id-module

In your Laminas application config add to module list

return [ 'modules' => [ \RstGroup\RequestIdModule::class, ], ];

Configuration

You can also change request header and not to allow override request id by request header

return [ 'rst_group' => [ 'request_id_module' => [ 'header_name' => 'X-Custom-Request-Id', 'allow_override'=> false, ], ], ];

Generator

In your autoload config based on environment you can change default PhpUniqidGenerator to other, for example you can use md5 generator:

return [ 'service_manager' => [ 'invokables' => [ \PhpMiddleware\RequestId\Generator\GeneratorInterface::class => \PhpMiddleware\RequestId\Generator\Md5Generator::class, ], ], ];

Usage

If you need request id, ex. to send request id to another service, you can get it from provider:

$requestIdProvider = $serviceLocator->get(\PhpMiddleware\RequestId\RequestIdProviderInterface::class); $requestId = $requestIdProvider->getRequestId();

统计信息

  • 总下载量: 80.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 7
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固