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

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();