Download the PHP package ingenerator/config without Composer
On this page you can find all versions of the php package ingenerator/config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ingenerator/config
More information about ingenerator/config
Files in ingenerator/config
Package config
Short Description Useful extensions to the kohana config system, including for loading deployment config from a JSON
License BSD-3-Clause
Homepage https://github.com/ingenerator/configuration
Informations about the package config
Config - Useful extensions to the kohana config system, including for loading deployment config from a JSON
Config is a small set of classes that add useful functionality to the kohana config system. It includes a JSON config reader, and a config initialiser that wraps up the process of loading all config files to make it easier to reload config during build etc and reduce the size of your bootstrap.
Installation
Add config to your composer.json and run composer update
to install it.
Basic Usage
In your bootstrap:
To override the source control config (for example to allow for different database or service credentials in different environments) just drop a JSON file with the extra config at APPPATH.'/config/deployment_config_overrides.json'.
You can also provide simple user-overridable config by dropping a second JSON at APPPATH.'/config/user_config_overrides.json'.
Testing and developing
config has a full suite of PhpSpec specifications. You'll need a skeleton Kohana application to run them, you can use koharness to create one.
Contributions will only be accepted if they are accompanied by well structured specs. Installing with composer should get you everything you need to work on the project.
License
config is copyright 2014 inGenerator Ltd and released under the BSD license.