PHP code example of thewunder / conphigure
1. Go to this page and download the library: Download thewunder/conphigure 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/ */
thewunder / conphigure example snippets
php
//read the directory
$config->read('/directory/config/');
//get all configuration as an array
$all = $config->all();
var_export($all);
/* The result will be:
[
'system' => ['...'], //contents of system.yml
'email' => ['...'], //contents of email.yml
'logging' => ['...'], //contents of logging.yml
'subdirectory' => [
'something' => ['...'], //contents of subdirectory/something.yml
]
];
*/