StringTemplate icon indicating copy to clipboard operation
StringTemplate copied to clipboard

A death-simple string templating engine for php.

Results 3 StringTemplate issues
Sort by recently updated
recently updated
newest added

I have been looking for a script which would also process conditional statements in string. for e.g: $string = 'My name is {name} and I scored {if: score>10 then well...

Passing null to parameter #2 ($replace) of type array|string is deprecated

The only thing that I really miss from this template engine is a support for different placeholders for booleans. For example: ```php $engine->render("The engine is turned {status|on|off}.", ['status' => true]);...