indibeast/email-template-generator

Email template generator

dev-master 2015-09-21 11:47 UTC

This package is not auto-updated.

Last update: 2020-08-07 20:00:25 UTC


README

Build Status Coverage Status

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.