承接 rmasters/stack-timer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

rmasters/stack-timer

Composer 安装命令:

composer require rmasters/stack-timer

包简介

Simple StackPHP middleware for timing

README 文档

README

A simple StackPHP middleware that reports on the time it takes the inner middlewares/app to run. Written to figure out what Stack can do 😃

Usage

Simply wrap your application in the timer middleware and the load time will be injected into the response body.

$app = new App(); // implements HttpKernelInterface
$timer = new StackTimer($app);

$request = Request::createFromGlobals();
$timer->handle($request)->send();

Options

Pass an array with any of the following keys to StackTimer::__construct(HttpKernelInterface, array):

  • inject (boolean, default: false) - whether to inject into the response body,
  • callbacks (callable|callable[]) - an array of closures/callables that are passed the following arguments: function(HttpFoundation\Request $request, float $microseconds).
  • format (string, default: {ms}ms) - the text to be injected, see list of replaced strings below.
  • wrapper (string, default: <div style="...">%s</div>) - HTML the text is contained in, must contain a single %s where the text will be added.
  • injection (string, default: </body>) - where to inject the snippet, this is passed through preg_quote and cannot contain regular expressions.
  • inject_before (boolean, default: true) - whether to inject the snippet before the injection point (i.e. before </body>).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-01-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固