mikegarde / braces-template
Simple template engine for populating values into a document.
Installs: 16 192
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Requires (Dev)
- phpunit/phpunit: ^5.4
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);