Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frqnck/fast-format
FastFormat, lean and fast string templating formatters!
https://github.com/frqnck/fast-format
Last synced: about 18 hours ago
JSON representation
FastFormat, lean and fast string templating formatters!
- Host: GitHub
- URL: https://github.com/frqnck/fast-format
- Owner: frqnck
- Created: 2017-09-20T14:01:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T14:17:57.000Z (over 7 years ago)
- Last Synced: 2024-12-11T06:19:47.448Z (30 days ago)
- Language: PHP
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FastFormat, lean and fast string formatters!
=[![Latest Stable Version](https://poser.pugx.org/frqnck/string-template/v/stable.svg)](https://packagist.org/packages/frqnck/string-template) [![Build Status](https://travis-ci.org/frqnck/string-template.png?branch=master)](https://travis-ci.org/frqnck/string-template) [![Code Quality](https://scrutinizer-ci.com/g/frqnck/string-template/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/frqnck/string-template/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/frqnck/apix-log/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/frqnck/string-template/?branch=master) [![License](https://poser.pugx.org/frqnck/string-template/license.svg)](https://packagist.org/packages/frqnck/string-template)
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](https://packagist.org/packages/frqnck/string-template) package.Feel free to comment, send pull requests and patches...
Usage
-----------
```php
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.