PHP code example of gravatalonga / configuration-scan
1. Go to this page and download the library: Download gravatalonga/configuration-scan 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/ */
gravatalonga / configuration-scan example snippets
$scan = new \Gravatalonga\ConfigurationScan\Scan("parent-folder");
$containers = $scan->containers(); // get array with "name-of-folder" as key, and config.json as value.
// ....
$configurations = $scan->configurations('name-of-folder'); // it will get "other" as key and other.json as value.