Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartko-s/stefano-db-profiler
[DEPRECATED] A ZF2, ZF3 module which profile database queries using \Zend\Db\Adapter\Profiler\Profiler and write them to ZendDeveloperTools toolbar
https://github.com/bartko-s/stefano-db-profiler
Last synced: 5 days ago
JSON representation
[DEPRECATED] A ZF2, ZF3 module which profile database queries using \Zend\Db\Adapter\Profiler\Profiler and write them to ZendDeveloperTools toolbar
- Host: GitHub
- URL: https://github.com/bartko-s/stefano-db-profiler
- Owner: bartko-s
- Created: 2014-04-06T16:20:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-09-27T13:02:15.000Z (over 7 years ago)
- Last Synced: 2024-12-10T05:32:24.062Z (about 1 month ago)
- Language: HTML
- Homepage:
- Size: 140 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[DEPRECATED] Db Profiler
========================This library is NOT MAINTAINED anymore please use [bjyoungblood/BjyProfiler
](https://github.com/bjyoungblood/BjyProfiler) instead.| Dependencies |
| :---: |
| [![Dependency Status](https://www.versioneye.com/user/projects/5526ab482ced4f6dfd0000ca/badge.svg?style=flat)](https://www.versioneye.com/user/projects/5526ab482ced4f6dfd0000ca) |A ZF2, ZF3 module to profile db queries using ```\Zend\Db\Adapter\Profiler\Profiler``` and write them to ZendDeveloperTools toolbar
![Db Profiler](./doc/images/snapshot.png)
- - -
Features
----- profiling db queries
- support multiple db connectionsDependencies
------------- Zend Framework 2 or Zend Framework 3
- Zend Developer ToolsInstalation
---- Add following line to your composer.json file ``` "stefano/stefano-db-profiler": "*" ```
- run ```composer update```
- Add module ``` StefanoDbProfiler ``` to 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\Adapter``` service 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