Skip to content

andrey-mokhov/bjy-profiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BjyProfiler

Master: Build Status Coverage Status

Provides Zend\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 Zend\Db's built-in profiler.

Note: PHP >= 5.5 is required for stack traces with query profiles.

Composer/Packagist Users

composer require --dev andrey-mokhov/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' => [
        'ZendDeveloperTools',
        '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('Zend\Db\Adapter\Adapter')->getProfiler();
$queryProfiles = $profiler->getQueryProfiles();

About

ZendDeveloperTools-compatible Zend\Db query profile

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%