A ZF2 module to profile db queries using Zend\Db\Adapter\Profiler\Profiler and write them to ZendDeveloperTools toolbar.

Installs: 4 199

Dependents: 0

Suggesters: 0

Stars: 3

Watchers: 1

Forks: 1

Open Issues: 0

Language: HTML

0.1.2 2015-10-26 21:03 UTC


Dependency Status

A ZF2 module to profile db queries using \Zend\Db\Adapter\Profiler\Profiler and write them to ZendDeveloperTools toolbar

Db Profiler


  • profiling db queries
  • support multiple db connections


  • Zend Framework 2
  • Zend Developer Tools


  • Add following line to your composer.json file "stefano/stefano-db-profiler": "*"

  • run composer update

  • Add 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.


Configuration options are available in config/ 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