2017 © Pedro Peláez
 

library config

Useful extensions to the kohana config system, including for loading deployment config from a JSON

image

ingenerator/config

Useful extensions to the kohana config system, including for loading deployment config from a JSON

  • Friday, February 9, 2018
  • by acoulton
  • Repository
  • 2 Watchers
  • 1 Stars
  • 4,981 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

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., (*1)

Installation

Add config to your composer.json and run composer update to install it., (*2)

{
  "require": { "ingenerator/config": "0.1.*@dev" }
}

Basic Usage

In your bootstrap:, (*3)

/**
 * Enable the composer autoloader
 */
require_once(__DIR__.'/../vendor/autoload.php');

\Ingenerator\Config\ConfigInitialiser::initialise(Kohana::$config);

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'., (*4)

You can also provide simple user-overridable config by dropping a second JSON at APPPATH.'/config/user_config_overrides.json'., (*5)

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., (*6)

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., (*7)

License

config is copyright 2014 inGenerator Ltd and released under the BSD license., (*8)

The Versions

09/02 2018

dev-master

9999999-dev https://github.com/ingenerator/configuration

Useful extensions to the kohana config system, including for loading deployment config from a JSON

  Sources   Download

BSD BSD-3-Clause

The Requires

 

The Development Requires

config kohana

24/02 2017

v0.1.3

0.1.3.0 https://github.com/ingenerator/configuration

Useful extensions to the kohana config system, including for loading deployment config from a JSON

  Sources   Download

BSD

The Requires

 

The Development Requires

config kohana

11/05 2014

v0.1.2

0.1.2.0 https://github.com/ingenerator/configuration

Useful extensions to the kohana config system, including for loading deployment config from a JSON

  Sources   Download

BSD

The Requires

 

The Development Requires

config kohana

14/03 2014

v0.1.1

0.1.1.0 https://github.com/ingenerator/configuration

Useful extensions to the kohana config system, including for loading deployment config from a JSON

  Sources   Download

BSD

The Requires

 

The Development Requires

config kohana

14/03 2014

v0.1.0

0.1.0.0 https://github.com/ingenerator/configuration

Useful extensions to the kohana config system, including for loading deployment config from a JSON

  Sources   Download

BSD

The Requires

 

The Development Requires

config kohana