frqnck / fast-format
Fast and simple string formater/templater engine. Provides named and nested substutions. Extendable.
0.1.0
2017-09-20 14:07 UTC
Requires
- php: >=5.3
- psr/log: ^1.0
Requires (Dev)
- apix/cache: ^1.2
- apix/log: ^1.2
This package is auto-updated.
Last update: 2024-11-29 05:09:13 UTC
README
An expressive and fast string templating engine.
- 100% Unit tested and compliant with PSR0, PSR1 and PSR2.
- Continuously integrated against PHP 5.3, 5.4, 5.5, 5.6, 7.0 and HHVM.
- Available as a Composer package.
Feel free to comment, send pull requests and patches...
Usage
use Apix\String; $template = new Template; $template->render("My name is {name} {surname}", ['name' => 'franck', 'surname' => 'Cassedanne']);
Installation
Install the current major version using Composer with (recommended)
$ composer require frqnck/string-template:1.0.*
Or install the latest stable version with
$ composer require frqnck/string-template
License
Pastis is licensed under the New BSD license -- see the LICENSE.txt
for the full license details.