indibeast / email-template-generator
Email template generator
dev-master
2015-09-21 11:47 UTC
Requires
- php: >=5.5.0
- jenssegers/blade: ^1.0
Requires (Dev)
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ~0.6
This package is not auto-updated.
Last update: 2024-11-09 18:38:05 UTC
README
Minimum Requirements
- PHP 5.5+
Installation
Install using composer:
composer require indibeast/email-template-generator
FileWriter
$filewriter = new Writer(__DIR__ . '/../files/');//Set the directory $content = 'Hi {{$name}}';//Blade content $filewriter->setFilename('sample')->setContent($content)->save();//This will create sample.blade.php file in the given location.
FileReader
$reader = new Reader(__DIR__ . '/../files/');//Set the directory where blade files located. $reader->setFilename('sample')->readFile();//This will display 'Hi {{$name}}'.
BladeRender
$bladeRender = new BladeRender(__DIR__ . '/../files',__DIR__ . '/../cache');//Set views nad cache folder for blade files. $bladeRender->render('sample',['name' => 'Mahendra']);//This will display 'Hi Mahendra'.
License
The MIT License (MIT). Please see License File for more information.