helionogueir/filecreator

A simple library for read, create, manipulate files

v1.1.0 2016-12-09 17:21 UTC

This package is not auto-updated.

Last update: 2024-12-16 13:18:45 UTC


README

A simple library for read, create, manipulate files.

Installation

Composer (https://getcomposer.org/) and (https://packagist.org/)

composer require helionogueir/filecreator

Usage

helionogueir\filecreator\data\ReplaceText

Replace TAGs in file

use helionogueir\filecreator\data\ReplaceText;
$text = "Point {data:v1} to {data:v2}";
echo (new ReplaceText())->replace($text, $data);

helionogueir\filecreator\output\ReadFile

Read file by path name

use helionogueir\filecreator\output\ReadFile;
(new ReadFile())->read(__FILE__, true);

helionogueir\filecreator\tool\NameGenarator

Create unique random namespace

use helionogueir\filecreator\tool\NameGenarator;
echo NameGenarator::uniqueName();

TDD (Test Driven Development)

PHPUnit (https://phpunit.de/)

phpunit -c ./filecreator/tests/unit.xml