substitute/substitute

String replacement based template engine

v1.1 2014-12-09 20:08 UTC

This package is not auto-updated.

Last update: 2022-01-22 00:20:12 UTC


README

String replacement based templating engine

Build Status

Usage

$template = new \substitute\Template("Hi {name}, your activation code is {code}.")
$message = $template->render(array('name' => 'John', 'code' => '1234')); // Hi John, your activation code is 1234.