PHPackages                             frqnck/fast-format - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. frqnck/fast-format

ActiveLibrary[Templating &amp; Views](/categories/templating)

frqnck/fast-format
==================

Fast and simple string formater/templater engine. Provides named and nested substutions. Extendable.

0.1.0(8y ago)1264BSD-3-ClausePHPPHP &gt;=5.3

Since Sep 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/frqnck/fast-format)[ Packagist](https://packagist.org/packages/frqnck/fast-format)[ Docs](https://github.com/frqnck/fast-format)[ RSS](/packages/frqnck-fast-format/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

FastFormat, lean and fast string formatters!
============================================

[](#fastformat-lean-and-fast-string-formatters)

[![Latest Stable Version](https://camo.githubusercontent.com/faf0a248759e16ef0224ce884a31a523c025f41d8fada976a966e47ef7c9aaec/68747470733a2f2f706f7365722e707567782e6f72672f6672716e636b2f737472696e672d74656d706c6174652f762f737461626c652e737667)](https://packagist.org/packages/frqnck/string-template) [![Build Status](https://camo.githubusercontent.com/6f0f9ad55d6d0f2a98151ca0e06dcb3f10126cf4808ce35030056befd23fdebe/68747470733a2f2f7472617669732d63692e6f72672f6672716e636b2f737472696e672d74656d706c6174652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/frqnck/string-template) [![Code Quality](https://camo.githubusercontent.com/5e0b5d158a7b03256945c5c82a2beb646f73129b5a4c6154f77a54585c8fe19e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6672716e636b2f737472696e672d74656d706c6174652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/frqnck/string-template/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/95146065b9b7073520a75fd6d1fb03b5b83f59bfce1867c09aa222037b57dacb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6672716e636b2f617069782d6c6f672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/frqnck/string-template/?branch=master) [![License](https://camo.githubusercontent.com/ae23a3da32e50946e6ad6f72cfc64075ae8c52de32f0dee92a0c693f499262ed/68747470733a2f2f706f7365722e707567782e6f72672f6672716e636b2f737472696e672d74656d706c6174652f6c6963656e73652e737667)](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
-----

[](#usage)

```
use Apix\String;

$template = new Template;
$template->render("My name is {name} {surname}", ['name' => 'franck', 'surname' => 'Cassedanne']);
```

Installation
------------

[](#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
-------

[](#license)

Pastis is licensed under the New BSD license -- see the `LICENSE.txt` for the full license details.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3158d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dbf52cf502005b3980f141849589ca308ddf20652b0c3c6371305dad2b9b1df?d=identicon)[frqnck](/maintainers/frqnck)

---

Top Contributors

[![frqnck](https://avatars.githubusercontent.com/u/479874?v=4)](https://github.com/frqnck "frqnck (1 commits)")

---

Tags

formattemplateapixsprintf

### Embed Badge

![Health badge](/badges/frqnck-fast-format/health.svg)

```
[![Health](https://phpackages.com/badges/frqnck-fast-format/health.svg)](https://phpackages.com/packages/frqnck-fast-format)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M186](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

420137.3M46](/packages/rize-uri-template)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
