PHP code example of mikegarde / braces-template

1. Go to this page and download the library: Download mikegarde/braces-template library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mikegarde / braces-template example snippets




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);