A simple library for read, create, manipulate files.
Composer (https://getcomposer.org/) and (https://packagist.org/)
composer require helionogueir/filecreator
Replace TAGs in file
use helionogueir\filecreator\data\ReplaceText;
$text = "Point {data:v1} to {data:v2}";
echo (new ReplaceText())->replace($text, $data);
Read file by path name
use helionogueir\filecreator\output\ReadFile;
(new ReadFile())->read(__FILE__, true);
Create unique random namespace
use helionogueir\filecreator\tool\NameGenarator;
echo NameGenarator::uniqueName();
PHPUnit (https://phpunit.de/)
phpunit -c ./filecreator/tests/unit.xml