pmaxs / config
Library for loading configs (yaml, xml, ini). Supports imports, constants and parameters (Symfony DI style %parameter%).
1.0.1
2016-10-18 11:21 UTC
Requires
- php: >=5.4.0
- symfony/config: ^3.1
- symfony/property-access: ^3.1
- zendframework/zend-config: ^2.0
Requires (Dev)
- symfony/var-dumper: ^3.1
This package is auto-updated.
Last update: 2024-04-10 17:23:57 UTC
README
Library for loading configs (yaml, xml, ini) based on Symfony Config component. Supports imports, constants and parameters (Symfony DI style %parameter%).
Installation
composer require pmaxs/config
Usage
require '../vendor/autoload.php'; define('CONSTANT', 'This is constant'); $loader = new \Pmaxs\Config\Loader('./config'); $config = $loader->load('config.yml')->getData();