PHPackages                             youhey/c-sharp-ish-string-formatter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. youhey/c-sharp-ish-string-formatter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

youhey/c-sharp-ish-string-formatter
===================================

C# style string formatting (without optional format string)

v0.1.1(7y ago)013MITPHPPHP &gt;=7.0.0

Since Jun 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/youhey/stringformatter)[ Packagist](https://packagist.org/packages/youhey/c-sharp-ish-string-formatter)[ RSS](/packages/youhey-c-sharp-ish-string-formatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

C# String.Format-ish String formatter
=====================================

[](#c-stringformat-ish-string-formatter)

C# style string formatting (without optional format string)

Usage
-----

[](#usage)

simple format

```
use Youhey\StringFormatter\Formatter;

// output "はじめまして 世界!"
echo (new Formatter("{hello} {world}!"))->compile(["hello" => "はじめまして", "world" => "世界"]);

// output "hello world!"
echo (new Formatter("{0} {1}!"))->compile("hello", "world");
```

Test
----

[](#test)

```
# set up Docker images for php 7.2
$ docker build -t youhey/php72-stringformatter docker/php72

# set up Docker images for php 7.1
$ docker build -t youhey/php71-stringformatter docker/php71

# set up Docker images for php 7.0
$ docker build -t youhey/php70-stringformatter docker/php70

# composer install
$ docker run --rm -v "$(pwd):/work" youhey/php72-stringformatter composer install
# or docker run --rm -v "$(pwd):/work" youhey/php71-stringformatter composer install
# or docker run --rm -v "$(pwd):/work" youhey/php70-stringformatter composer install

# to run tests

$ docker run --rm -v "$(pwd):/work" youhey/php72-stringformatter composer test
# or docker run --rm -v "$(pwd):/work" youhey/php71-stringformatter composer test
# or docker run --rm -v "$(pwd):/work" youhey/php70-stringformatter composer test
```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% 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

2

Last Release

2896d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f2b990cf6f1ffb466040085836580e9c87176ca4ec62c384c6af7fcfa37554?d=identicon)[youhey](/maintainers/youhey)

---

Top Contributors

[![KiteretsuIkeda](https://avatars.githubusercontent.com/u/52646238?v=4)](https://github.com/KiteretsuIkeda "KiteretsuIkeda (7 commits)")[![youhey](https://avatars.githubusercontent.com/u/504187?v=4)](https://github.com/youhey "youhey (4 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/youhey-c-sharp-ish-string-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/youhey-c-sharp-ish-string-formatter/health.svg)](https://phpackages.com/packages/youhey-c-sharp-ish-string-formatter)
```

PHPackages © 2026

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