stefano/stefano-db-profiler
最新稳定版本:0.2.0
Composer 安装命令:
composer require stefano/stefano-db-profiler
包简介
A ZF2, ZF3 module to profile db queries using Zend\Db\Adapter\Profiler\Profiler and write them to ZendDeveloperTools toolbar.
README 文档
README
This library is NOT MAINTAINED anymore please use bjyoungblood/BjyProfiler instead.
| Dependencies |
|---|
A ZF2, ZF3 module to profile db queries using \Zend\Db\Adapter\Profiler\Profiler and write them to ZendDeveloperTools toolbar
Features
- profiling db queries
- support multiple db connections
Dependencies
- Zend Framework 2 or Zend Framework 3
- Zend Developer Tools
Instalation
-
Add following line to your composer.json file
"stefano/stefano-db-profiler": "*" -
run
composer update -
Add module
StefanoDbProfilerto your application.config.php -
Enable profiler for your Db Adapter or Adapters
'db' => array(
'driver' => 'Pdo_Mysql',
'database' => 'db',
'username' => 'username',
'password' => 'pass',
'profiler' => true, //this line enable db profiler
)
- Library uses
Zend\Db\Adapter\Adapterservice key. If you are uses different key for your Db Adapter you must set it by configuration options.
Options
Configuration options are available in config/stefano.db.profiler.global.php.dist file. If you want to change the default ones, copy it in your config/autoload directory, remove the .dist extension and edit it.
Options available :
- dbAdapterServiceManagerKey : List of all Db Adapter service manager keys which you want to profile. Zend\Db\Adapter\Adapter is default
统计信息
- 总下载量: 15.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-04-06
