2017 © Pedro Peláez
 

library overture

Universal configuration tool

image

overture/overture

Universal configuration tool

  • Thursday, March 17, 2016
  • by hraban
  • Repository
  • 1 Watchers
  • 1 Stars
  • 44 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Overture Build Status

Overture is a universal PHP configuration tool. Traditionally frameworks tell us how and where to store our configuration data and it is not always easy to overrride default behaviour. Overture provides a common interface to retrieve configuration values regardless of where they stored, let it be a YML file in a project folder or a key stored in Consul.io., (*1)

This approach allows configuration source to be easily swapped. Consider having common AWS credentials and Elastic Search node details in one centralized location. Whenever the value of such configuration option changes, every project using Overture will use new values straight away. What if you application becomes a little bit special and needs an solated configuration? No problem, just swap the provider and nothing else in your code would need to change., (*2)

$provider = new ConsulIOProvder($baseURL);
$overture = new Overture($provider);
$AWSSecret = $overture->get('aws.secret');

If the application scales and does not want to share configuration values anymore, we can always change the provider, (*3)

$fileResource = new FileResource($configFile);
$provider = new YamlProvider($fileResource);
$overture = new Overture($provider);
$AWSSecret = $overture->get('aws.secret');

The Versions

17/03 2016

dev-master

9999999-dev https://github.com/vhraban/Overture

Universal configuration tool

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

php configuration