2017 © Pedro Peláez
 

library php-config

A generic configuration loader library not specifically based on files

image

nvanheuverzwijn/php-config

A generic configuration loader library not specifically based on files

  • Friday, January 26, 2018
  • by nvanheuverzwijn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Config

This library tries it's best to be lightweight and dependency free. The objective is to provide a standard configuration object, a pluggable configuration source objects and a standard factory object to configure the configuration., (*1)

Usage

The main way to instanciate a configuration object is via the ConfigFactory::fromArray static function. This function takes a simple array as a definition of the reader to use in order to generate a configuration object., (*2)

The array must respect the structure as shown below., (*3)

[
    'reader' => [
        [
            'class' => 'ClassName'
            'config' => 'argument passed to the constructor of ClassName'
        ],
        [...]
    ]
]

You can then pass this array to ConfigFactory::fromArray function., (*4)

$conf = \Zwijn\Config\ConfigFactory::fromArray($array);

Build system requirements

You need docker and GNU make., (*5)

Tests

Run below command, (*6)

make test

License

See the license file., (*7)

Acknowledgement

Inspiration for this library is taken from Zend\Config. I encourage you to take a look at their software., (*8)

The Versions

26/01 2018

dev-master

9999999-dev http://github.com/nvanheuverzwijn/php-config

A generic configuration loader library not specifically based on files

  Sources   Download

LGPL3.0 LGPL-3.0-or-later

The Requires

  • php >=5.6.0

 

The Development Requires

by Nicolas Vanheuverzwijn

configuration config

11/06 2017

0.0.1

0.0.1.0 http://github.com/nvanheuverzwijn/php-config

A generic configuration loader library not specifically based on files

  Sources   Download

LGPL3.0

The Requires

  • php >=5.6.0

 

The Development Requires

by Nicolas Vanheuverzwijn

configuration config