PHP code example of traineratwot / composer-config

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

    

traineratwot / composer-config example snippets



# config.php
    use Config;

	Config::set('test1', 'value1');
	Config::set('test1', 'value2','lb1');
	Config::set('test2', 'value3');
	Config::set('test3', 'value4','lb1');

	echo Config::get('test1').PHP_EOL;//value1
	echo Config::get('test1','lb1').PHP_EOL;//value2
	echo Config::get('test2').PHP_EOL;//value3
	echo Config::get('test2','lb1').PHP_EOL;//value3
	echo Config::get('test3').PHP_EOL;//value4
	echo Config::get('test3','lb1').PHP_EOL;//value4

txt
>ok
>