定制 tourze/symfony-command-profile-bundle 二次开发

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

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

tourze/symfony-command-profile-bundle

最新稳定版本:0.1.0

Composer 安装命令:

composer require tourze/symfony-command-profile-bundle

包简介

A Symfony bundle that profiles and outputs the runtime of console commands

README 文档

README

English | 中文

Latest Version PHP Version License Build Status Quality Score Code Coverage Total Downloads

A Symfony bundle that profiles and outputs the runtime of console commands. It helps you analyze the performance of your custom or built-in Symfony console commands by displaying the execution time after each run.

Features

  • Automatically tracks and displays the execution time for every Symfony console command
  • No code modification needed for your commands
  • Lightweight and easy to integrate

Installation

Make sure your project uses Symfony 6.4+ and PHP 8.1+.

Install via Composer:

composer require tourze/symfony-command-profile-bundle

Quick Start

  1. Register the bundle in your Symfony application's config/bundles.php (if Flex does not auto-register):
return [
    // ...
    Tourze\CommandProfileBundle\CommandProfileBundle::class => ['all' => true],
];
  1. Run any Symfony console command:
php bin/console your:command

At the end of the command output, you will see a line like:

RunTime: 0.123456

No additional configuration is required.

Advanced

  • The bundle uses event subscribers to hook into ConsoleEvents::COMMAND and ConsoleEvents::TERMINATE.
  • Uses nesbot/carbon for precise time calculation.

Contributing

Please see CONTRIBUTING.md for details.

License

This bundle is open-sourced software licensed under the MIT license.

Changelog

See CHANGELOG.md for version history and upgrade notes.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固