PHPackages                             nixiware/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. nixiware/string-formatter

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

nixiware/string-formatter
=========================

String formatter supporting named arguments.

1.3.0(7y ago)073MITPHPPHP &gt;=5.3.0

Since Sep 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Nixiware/string-formatter)[ Packagist](https://packagist.org/packages/nixiware/string-formatter)[ RSS](/packages/nixiware-string-formatter/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

StringFormatter
===============

[](#stringformatter)

Introduction
------------

[](#introduction)

String formatter supporting named arguments.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.3

Usage
-----

[](#usage)

1. Import package namespace `use Nixiware\StringFormatter;`
2. Format strings using the static method `format($str, $data)`

- `$str` - template string
- `$data` - values

Arguments are specified in the template string by placing them between double curly braces: `{{argumentName}}`.

Argument names can contain letters (a-z, A-Z), numbers (0-9) and underscore (\_) character.

Example
-------

[](#example)

- Display a simple formatted string.

```
echo StringFormatter::format(
	'It {{status}}!',
	[
		'status' => 'works'
	]
);

```

Outputs: `It works!`

License
-------

[](#license)

StringFormatter is available under the MIT license. See the LICENSE file for more info.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

2809d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/982c5b4df8b5f6b032639976f908798ecdb200d7150cd4bc3d6121a301a41556?d=identicon)[adrian\_ilie9](/maintainers/adrian_ilie9)

---

Top Contributors

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

---

Tags

php

### Embed Badge

![Health badge](/badges/nixiware-string-formatter/health.svg)

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

###  Alternatives

[jbzoo/composer-diff

See what has changed after a composer update.

53888.9k1](/packages/jbzoo-composer-diff)

PHPackages © 2026

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