kamisama / debug-kit-ex
An extension for CakePHP DebugKit plugin
Installs: 12 675
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 5
Forks: 6
Open Issues: 1
Type:cakephp-plugin
Requires
- php: >=5.3.0
- composer/installers: *
This package is not auto-updated.
Last update: 2023-03-27 07:38:38 UTC
README
DebugKit Ex is an extension for the CakePHP DebugKit plugin.
It provides some additionals panels such as nosql (redis) queries logging and cache logging.
Requirements
For older cakephp, download the 1.3.x version
Install
###Install the plugin###
Download the plugin
Either with git clone
or by downloading the archive.
With Git clone
cd app/Plugin
git clone git://github.com/kamisama/DebugKitEx.git DebugKitEx
Download the archive
Download the latest release, and uncompress it in app/Plugin
. Make sure the plugin folder is named DebugKitEx.
With composer
Add "kamisama/debug-kit-ex": "2.2.*""
to your composer dependencies, then run
composer install
Load the plugin into CakePHP
CakePlugin::load(array('DebugKit','DebugKitEx'));
Load the panels
To load the extended panel, edit your debugkit call (in your AppController.php probably)
var $components = array('DebugKit.Toolbar' => array( 'panels' => array('DebugKitEx.Cache', 'DebugKitEx.Nosql', 'DebugKitEx.Resque') // Load only what you want ));
Enabling each panels requires some additionals step, since each panels depends on an external tools/plugin.
Available panels
####Install the custom cache adapter####
Since redefining core class in a plugin is impossible, you have to drop the app/Plugin/DebugKitEx/Lib/Cache/Cache.php
file in app/Lib/Cache/
(create the folder if necessary).
You application will use this Cache class instead of the one in the core, the main benefit is that you don't need to change anything in your calls to the Cache class.
This class implements additionals method to logs the cache activities, the cache panel will not works without it.
####Install the nosql datasource layer####
The NoSql panel will only works with one of my other plugin, see its page on how to install and use it.
###Resque Panel###
To use with CakeResque
##Changelog##
####Ver 2.2.9 (2013-09-24)####
- Add plugin to packagist
####Ver 2.2.8 (2012-10-17)####
- Gracefully handle errors when panels dependencies are not found
####Ver 2.2.7 (2012-10-16)####
- Fix Repository file structure
####Ver 2.2.6 (2012-10-01)####
- New UI for Resque Panel
####Ver 2.2.5 (2012-10-01)####
- New UI for NoSql panel
- NoSql panel can display more than one Nosql engine
####Ver 2.2.4 (2012-09-30)####
- New UI for Cache panel, require the latest debugkit plugin
####Ver 2.2.3 (2012-09-10)####
- Add queries time and queries count stats for NoSql panel
####Ver 2.2.2 (2012-09-09)####
- Update Resque Job panel to display query time (require CakePHP-NoSQL-Datasource 0.4)
####Ver 2.2.1 (2012-09-08)####
- Add ResqueJob Panel, to display jobs enqueuing with CakeResque
####Ver 2.2.0 (2012-07-01)####
- Update plugin for DebugKit 2.2 and for CakePHP 2.2 (requires at least cakephp 2.2)