PHP code example of xiaolin / laravel-config
1. Go to this page and download the library: Download xiaolin/laravel-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/ */
xiaolin / laravel-config example snippets
$file = 'config.yml';
Yaml::getInstance()->load($file);
$file = 'config.yml';
$data = Yaml::getInstance()->save($file, $data);
$data['mysql']['port'] = 3307;
yml_write($file,$data);