PHPackages                             schnittstabil/curty - 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. schnittstabil/curty

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

schnittstabil/curty
===================

Simple curly braces micro templating

0.2.1(8y ago)0398MITPHPPHP &gt;=7

Since May 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/schnittstabil/curty)[ Packagist](https://packagist.org/packages/schnittstabil/curty)[ RSS](/packages/schnittstabil-curty/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

Schnittstabil\\Curty [![Build Status](https://camo.githubusercontent.com/3347793bde2900149ad94369575ca7e6bbc759a3e408c31987cf9823d430d3d2/68747470733a2f2f7472617669732d63692e6f72672f7363686e69747473746162696c2f63757274792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/schnittstabil/curty) [![Coverage Status](https://camo.githubusercontent.com/73e505c4c7e0d4f4b92659b0f97c649faa039b566f7ce75d28d2d53073da1349/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7363686e69747473746162696c2f63757274792f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/schnittstabil/curty?branch=master) [![Code Climate](https://camo.githubusercontent.com/323456249453ccb8c746f54a5e34035d0d48f8de458c4722ebf7eb177bda7711/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7363686e69747473746162696c2f63757274792f6261646765732f6770612e737667)](https://codeclimate.com/github/schnittstabil/curty) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/903599b47228991bc04a22f82619655dbf3f642cdef976c2da59243c6c704cfa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7363686e69747473746162696c2f63757274792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/schnittstabil/curty/?branch=master)
========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#schnittstabilcurty----)

[![SensioLabsInsight](https://camo.githubusercontent.com/90c6c2326e82618e89b53abda7afc85f6a60b4fb7cd47cd7b47d784ce4c06168/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61346633353338662d356430662d343062302d626566312d6431633039663839366634302f6269672e706e67)](https://insight.sensiolabs.com/projects/a4f3538f-5d0f-40b0-bef1-d1c09f896f40)

> Simple curly braces micro templating.

Install
-------

[](#install)

```
composer require schnittstabil/curty

```

Usage
-----

[](#usage)

```
// Context (variable lookup table)
$ctx = [
    'user' => [
        'login' => 'curt',
        'phone' => [
            'internal' => 1337,
        ],
    ],
    'unicorn' => '{user.login}: {user.phone.internal}',
    'lazy' => function ($ctx) : string {
        return date('z').' {unicorn}';
    },
];

/*
 * Simple rendering
 */
use Schnittstabil\Curty;

echo Curty\render('{user.login}', $ctx); // => 'curt'
echo Curty\render('{unicorn}', $ctx);    // => '{user.login}: {user.phone.internal}'
echo Curty\render('{lazy}', $ctx);       // => '42 {unicorn}'

/*
 * Fixed-point rendering
 */
use function Schnittstabil\curty;

echo curty('{user.login}', $ctx); // => 'curt'
echo curty('{unicorn}', $ctx);    // => 'curt: 1337'
echo curty('{lazy}', $ctx);       // => '42 curt: 1337'
```

License
-------

[](#license)

MIT © [schnittstabil](http://schnittstabil.de)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~0 days

Total

3

Last Release

3269d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6059032?v=4)[Michael Mayer](/maintainers/schnittstabil)[@schnittstabil](https://github.com/schnittstabil)

---

Top Contributors

[![schnittstabil](https://avatars.githubusercontent.com/u/6059032?v=4)](https://github.com/schnittstabil "schnittstabil (3 commits)")

---

Tags

stringmicroformattemplatetemplatingSimpletransformformattingvaluescurlystrtplexpandplaceholdersinterpolationbracesinterpolatefixed-pointfixpointfmt

### Embed Badge

![Health badge](/badges/schnittstabil-curty/health.svg)

```
[![Health](https://phpackages.com/badges/schnittstabil-curty/health.svg)](https://phpackages.com/packages/schnittstabil-curty)
```

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)[fenom/fenom

Fenom - excellent template engine for PHP

44395.5k19](/packages/fenom-fenom)[duncan3dc/blade

Use Laravel Blade templates without the full Laravel framework

160499.5k24](/packages/duncan3dc-blade)[eftec/bladeonehtml

The standalone version Blade Template Engine from Laravel in a single php file

1018.1k5](/packages/eftec-bladeonehtml)

PHPackages © 2026

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