PHP code example of ghalambaz / config-file-manager

1. Go to this page and download the library: Download ghalambaz/config-file-manager 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/ */

    

ghalambaz / config-file-manager example snippets


    $config = new ConfigFileManager('configs/config.ini');  //opening file config.ini from configs directory  
         
    echo $config->Title;  //read  "Title" value which is equal to  "My App"  
       
    $config->Title = "Your App";  //changing value of "Title"  
      
    $config->save();  //save changes to config.ini easily