bariew / phptools
Tools for web development
Installs: 187
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:helpers
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-12-16 15:31:09 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.