vocento/request-id 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

vocento/request-id

最新稳定版本:v1.2.0

Composer 安装命令:

composer require vocento/request-id

包简介

HTTP Request identifier to trace requests through microservices calls

README 文档

README

This library contains the class and the way a RequestId should be used between the microservices calls.

Installation

To install the library, include the package as a requirement in your composer.json file.

composer require vocento/request-id 

Usage

To create a new request id, import the class and the call the method create.

<?php ... use Vocento\RequestId; class Foo { ... public function method() { ... // Create a new request id $requestId = RequestId::create(); // Create a request id from var $requestId = RequestId::create($currentRequestId); // Create a request id from string $requestId = RequestId::create('my-own-request-id'); // Get the request id value $requestId->getId(); // Get the request id header name $headerName = RequestId::HEADER_NAME; $headerName = $requestId->getHeaderName(); ... } ... }

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固