mikegarde/braces-template

Simple template engine for populating values into a document.

0.1.0 2016-11-14 22:06 UTC

This package is auto-updated.

Last update: 2024-11-15 03:04:41 UTC


README

Simple template engine for populating values into a document.

require_once('vendor/autoload.php');

use bracesTemplate\bracesTemplate as bt;

$template = __DIR__ . '/file.xml';
$fields   = [
	'fromStatus'  => 1,
	'toStatus'    => 2,
	'datetime'    => '2016-07-25 12:00:00',
	'description' => 'order approved',
];

$request = bt::fill($template, $fields, true);