2017-25 © Pedro Peláez
 

library configuration-framework

Configuration helper package for loading of environment and platform specific configuration files of different formats.

image

swichers/configuration-framework

Configuration helper package for loading of environment and platform specific configuration files of different formats.

  • Friday, April 3, 2015
  • by swichers
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Configuration wrapper

Allows easily reading a site's configuration through the use of a *Config() wrapper class. It can work on multiple platforms and environments., (*1)

This came about from the need to support multiple different platforms, environments, and configuration setups across different project types. I wanted a singular way to work with these different setups instead of having something custom for each platform and project type., (*2)

Basic example:

require 'path/to/composer/autoload.php';

use StevenWichers\Configuration\JSONConfig;

$config = new JSONConfig();
$fqdn = $config->getConfigItem('fqdn')->getValue();

See example.php in the examples folder for more usage examples., (*3)

Installation

Installation using composer is very straightforward. You must add the repository as an entry in your composer.json, as well as requiring the project. A complete composer.json that only includes this project would look like this:, (*4)

{
  "repositories": [
    {
      "url": "https://github.com/swichers/configuration-framework.git",
      "type": "git"
    }
  ],
  "require": {
    "swichers/configuration-framework": "1.*@stable"
  }
}

After your composer.json file has been created or updated, you would issue a composer install command. The final step is adding the composer autoloader to your project:, (*5)

require 'path/to/vendor/autoload.php';

Other

You can clone this repository to your project and include the classes directly. This project relies on a proper PSR-0/PSR-4 compliant autoloader being configured, but otherwise does not leverage any of the other composer features at this time., (*6)

The Versions

03/04 2015

dev-master

9999999-dev

Configuration helper package for loading of environment and platform specific configuration files of different formats.

  Sources   Download

Apache-2.0

The Requires

 

by Steven Wichers

03/04 2015

1.1

1.1.0.0

Configuration helper package for loading of environment and platform specific configuration files of different formats.

  Sources   Download

Apache-2.0

The Requires

 

by Steven Wichers