matt9mg/c5-profiler
Composer 安装命令:
composer require matt9mg/c5-profiler
包简介
Concrete5 profiler PHP Debugbar
README 文档
README
The is the missing profiler for C5 and an extension of http://phpdebugbar.com/
Introduction
Concrete 5.8 and PHP7.4+ compatible add-on to analyze in realtime system and performance information
Installation
There are 2 ways to install this package
Copy and Paste
Please download the repo and copy and paste just the package folder mt_profiler into the packages directory.
Composer
You can use composer to get the latest version and keep upto date
Add this to you composer.json:
"require": { "matt9mg/c5-profiler": "^1.0", "slowprog/composer-copy-file": "~0.3" }, "scripts": { "post-install-cmd": [ "SlowProg\\CopyFile\\ScriptHandler::copy" ], "post-update-cmd": [ "SlowProg\\CopyFile\\ScriptHandler::copy" ] }, "extra": { "copy-file": { "vendor/matt9mg/c5-profiler": "/packages/" } }
The copy-file /packages/ DIR location may differ per installation and which composer file location this resides, you'll need to update that accordingly.
Run composer install
What does is profile?
- Custom messages
- Custom timelines
- Request information
- Session information
- Monolog
- DB Queries
- Logs
- Events
- Config
- Route
- User
- Blocks
- Memory Usage
- Load time
- PHP version
- Comparable history
Configuration
Upon package installation a new dashboard page is includes called /dashboard/mt_profiler, within here you can control to show the profiler and what you wish to profile. This information is stored within generated_overrides.
Advanced configuration
If you wish to control this if the config DIR instead of using the dashboard screen you can do by adding in you config directory for the application application/config an mt_profiler.php. This will also honour environment based config files such as local.mt_profiler.php, staging.mt_profiler.php, production.mt_profiler.php etc.
<?php return [ 'active' => true, 'profilers' => [ 'php_info' => true, 'messages' => true, 'time' => true, 'memory' => true, 'request' => true, 'session' => true, 'monolog' => true, 'db' => true, 'logs' => true, 'env' => true, 'events' => true, 'config' => true, 'route' => true, 'user' => true, 'blocks' => true, 'mail' => true ] ];
How to extend and add custom elements to the profiler?
You can add custom profiler tabs by simply listening for the event mt_profiler_add_data_collector
How to contribute?
Please raise a PR.
matt9mg/c5-profiler 适用场景与选型建议
matt9mg/c5-profiler 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21 次下载、GitHub Stars 达 2, 最近一次更新时间为 2020 年 09 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 matt9mg/c5-profiler 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 matt9mg/c5-profiler 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-12
