2017 © Pedro Peláez
 

library config

Framework agnostic configuration package

image

blast/config

Framework agnostic configuration package

  • Sunday, January 10, 2016
  • by mbunge
  • Repository
  • 0 Watchers
  • 9 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 5 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Blast config

Latest Version on Packagist ![Software License][ico-license] Build Status ![Total Downloads][ico-downloads] Coverage Status, (*1)

Framework agnostic configuration package supporting php and json. More file types under development., (*2)

Install

Via Composer, (*3)

``` bash $ composer require blast/config, (*4)


## Usage Only a few lines of code:

<?php, (*5)

$factory = new Factory();, (*6)

// define your base location for all configurations $locator = $factory->create(DIR . '/res');, (*7)

// receive config from json as array $config = $factory->load('/config/config.json', $locator);, (*8)

// receive config as array $config = $factory->load('/config/config.php', $locator);, (*9)


### Dependency injection Configure ServiceProvider and Facade.

<?php, (*10)

$container = new Container(); $container->addServiceProvider(new ConfigServiceProvider()); FacadeFactory::setContainer($container);, (*11)


Load your configuration.

<?php, (*12)

// define your base location for all configurations Config::create(DIR . '/res');, (*13)

// receive config from json as array $config = Config::load('/config/config.json', $locator);, (*14)


## Further development Please visit our [milestones](https://github.com/phpthinktank/blast-config/milestones) ## Change log Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING for details., (*15)

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker., (*16)

Credits

License

The MIT License (MIT). Please see License File for more information., (*17)

The Versions

10/01 2016

dev-master

9999999-dev https://github.com/phpthinktank/blast-config

Framework agnostic configuration package

  Sources   Download

MIT

The Requires

 

The Development Requires

php json configuration blast puliphp

10/01 2016

1.0.2

1.0.2.0 https://github.com/phpthinktank/blast-config

Framework agnostic configuration package

  Sources   Download

MIT

The Requires

 

The Development Requires

php json configuration blast puliphp

10/01 2016

dev-1.0.x-dev

dev-1.0.x-dev https://github.com/phpthinktank/blast-config

Framework agnostic configuration package

  Sources   Download

MIT

The Requires

 

The Development Requires

php json configuration blast puliphp

10/11 2015

dev-1.x-dev

dev-1.x-dev https://github.com/phpthinktank/blast-config

Framework agnostic configuration package

  Sources   Download

MIT

The Requires

 

The Development Requires

php json configuration blast puliphp

04/11 2015

v1.0.1

1.0.1.0 https://github.com/phpthinktank/blast-config

Framework agnostic configuration package

  Sources   Download

MIT

The Requires

 

The Development Requires

php json configuration blast puliphp

26/10 2015

v1.0

1.0.0.0 https://github.com/phpthinktank/blast-config

Framework agnostic configuration package

  Sources   Download

MIT

The Requires

 

The Development Requires

php json configuration blast puliphp