bariew / phptools
Tools for web development
1.0.0
2015-02-12 12:51 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2026-02-16 17:54:57 UTC
README
- FileModel - for extracting and saving data to file.
$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.