PHP code example of infinety-es / config

1. Go to this page and download the library: Download infinety-es/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/ */

    

infinety-es / config example snippets


composer 

'Infinety\Config\ConfigServiceProvider',

$writeConfig = new Infinety\Config\Rewrite;
$writeConfig->toFile('path/to/config.php', [
    'item' => 'new value',
    'nested.config.item' => 'value'
]);
app/config/app.php