1. Go to this page and download the library: Download blast/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/ */
blast / config example snippets
$factory = new Factory();
// define your base location for all configurations
$locator = $factory->create(__DIR__ . '/res');
// receive config from json as array
$config = $factory->load('/config/config.json', $locator);
// receive config as array
$config = $factory->load('/config/config.php', $locator);
$container = new Container();
$container->addServiceProvider(new ConfigServiceProvider());
FacadeFactory::setContainer($container);
// define your base location for all configurations
Config::create(__DIR__ . '/res');
// receive config from json as array
$config = Config::load('/config/config.json', $locator);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.