PHP code example of innmind / config
1. Go to this page and download the library: Download innmind/config library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
innmind / config example snippets
use Innmind\Config\Config;
use Symfony\Component\Yaml\Yaml;
$config = (new Config)->build(Yaml::parseFile('schema.yml'));
$data = $config->process($data);
$config = new Config(
new Structures(
...Structures::defaults()->add(MyStructure::class)
),
new Properties(
...Properties::defaults()->add(MyProperty::class)
)
);