PHP code example of rpodwika / yaml-config-service-provider
1. Go to this page and download the library: Download rpodwika/yaml-config-service-provider 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/ */
rpodwika / yaml-config-service-provider example snippets
= new Silex\Application();
$app->register(new Rpodwika\Silex\YamlConfigServiceProvider(PATH_TO_CONFIG_FILE));
echo $app['config']['database']['driver'];
...