italystrap/config

ItalyStrap Config Module - a simple and useful configuration package the OOP way

2.6.0 2022-09-04 08:41 UTC

README

Build status Latest Stable Version Total Downloads Latest Unstable Version License PHP from Packagist

ItalyStrap Config Module - a simple and useful configuration package the OOP way

Table Of Contents

Installation

The best way to use this package is through Composer:

composer require italystrap/config

Basic Usage

use ItalyStrap\Config\Config;

$config = new Config( $configObjOrArrayOptional, $configDefaultOptional );

$value = $config->get( 'key', $optionalDefaultValue ); 

Advanced Usage

You can see more advanced example in the tests folder.

Contributing

All feedback / bug reports / pull requests are welcome.

License

Copyright (c) 2019 Enea Overclokk, ItalyStrap

This code is licensed under the MIT.

Credits

Ideas from: