webinertia/bjy-profiler
最新稳定版本:0.0.11
Composer 安装命令:
composer require webinertia/bjy-profiler
包简介
Database profiler for Laminas\Db. Module forked from rafalli/BjyProfiler
README 文档
README
You must be running php >= 8.0 to use this package. So far the only changes have been updating the package so that it installs for php 8.1 and updating return types and syntax for 8.0
BjyProfiler
Provides Laminas\Db adapters with extensions for database query profiling, as well as a profiler similar to ZF1's Zend_Db_Profiler. I ported much of this code from ZF1's Zend_Db.
Note: this module now works with Laminas\Db's built-in profiler.
Note: PHP >= 5.5 is required for stack traces with query profiles.
Composer/Packagist Users
========================
composer require --dev webinertia/bjy-profiler
Configuration & Usage
Add BjyProfiler to your development.config.php in section modules, example:
return [ // Additional modules to include when in development mode 'modules' => [ 'Laminas\\DeveloperTools', 'BjyProfiler', ], // Configuration overrides during development mode 'module_listener_options' => [ 'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'], 'config_cache_enabled' => false, 'module_map_cache_enabled' => false, ], ];
$profiler = $sl->get('Laminas\Db\Adapter\Adapter')->getProfiler(); $queryProfiles = $profiler->getQueryProfiles();
统计信息
- 总下载量: 13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-01