PHP code example of bariew / phptools

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

    

bariew / phptools example snippets


    $model = new \bariew\phptools\FileModel("/path/to/file.php");
    var_dump($model->data); // array(... file content);
    $model->set('myKey', 'myValue'); // now we have our value in file content array;
    $model->set(['my', 'multidimensional', 'key'], ['myValue']); // putting nested key into depth of file content array.