seyfer / kohana-devtools
Kohana developer tools
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 11
Open Issues: 0
Type:kohana-module
Requires
- php: >=5.4
- composer/installers: 1.*
This package is auto-updated.
Last update: 2024-11-26 18:55:56 UTC
README
Features
- Easy access to Kohana environment details (normally only provided by
install.php
- Provides Transparent Extension information (which Kohana native classes your app/modules ovewrite) extend.
- Includes very useful Route tester
- Easy and readable access to all your app's routes, configs, messages and i18n's
Preview Screenshot
Compatibility
- Kohana 3.3.x
Installation
- Checkout/download files and folders to
MODPATH/devtools
. - Add this entry under
Kohana::modules
array in yourAPPPATH/bootstrap.php
:
'devtools' => MODPATH.'devtools', // Devtools
Conditional Loading
If you don't want to worry about disabling the module for non-DEVELOPMENT
environments you can load on condition in your bootstrap.php
, .e.g:
/** * Enable modules. Modules are referenced by a relative or absolute path. */ $modules = array( // 'auth' => MODPATH.'auth', // Basic authentication // 'cache' => MODPATH.'cache', // Caching with multiple backends // 'codebench' => MODPATH.'codebench', // Benchmarking tool // 'database' => MODPATH.'database', // Database access // 'image' => MODPATH.'image', // Image manipulation // 'minion' => MODPATH.'minion', // CLI Tasks // 'orm' => MODPATH.'orm', // Object Relationship Mapping // 'unittest' => MODPATH.'unittest', // Unit testing // 'userguide' => MODPATH.'userguide', // User guide and API documentation ); // Load Devtools module only if in DEVELOPMENT environment if (Kohana::$environment === Kohana::DEVELOPMENT) { $modules['devtools'] = MODPATH.'devtools'; } Kohana::modules($modules);
Configuration
This module requires no configuration.
Usage
Simply browse to /devtools
on your app.
Notes
This module will throw an exception if enabled in an environment different than DEVELOPMENT
.
Acknowledgements
This module was originally created by Michael Peters aka bluehawk. I merely provided few tweaks and updates to make it work with latest Kohana versions.