PHPackages                             gaming-engine/string-tools - 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. gaming-engine/string-tools

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

gaming-engine/string-tools
==========================

String Helper libraries

1.0.1(4y ago)17.4k↓91.7%MITPHPPHP ^8.0|^8.1CI failing

Since Aug 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gaming-engine/string-tools)[ Packagist](https://packagist.org/packages/gaming-engine/string-tools)[ Docs](https://github.com/gaming-engine/dictionary)[ RSS](/packages/gaming-engine-string-tools/feed)WikiDiscussions main Synced 2w ago

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

PHP String Tools
================

[](#php-string-tools)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d728071ec3c84525b42db0399d92e33057baf56b9df82b33435d191e6063ef8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67616d696e672d656e67696e652f737472696e672d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gaming-engine/string-tools)[![Total Downloads](https://camo.githubusercontent.com/a248eee675c55098a5b15f307cbb873bf036e2514f7e15631c5bda21a7a17372/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67616d696e672d656e67696e652f737472696e672d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gaming-engine/string-tools)[![GitHub Actions](https://github.com/gaming-engine/string-tools/actions/workflows/main.yml/badge.svg)](https://github.com/gaming-engine/string-tools/actions/workflows/main.yml/badge.svg)

A quick and easy helper for handling templated strings in PHP.

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

[](#installation)

You can install the package via composer:

```
composer require gaming-engine/string-tools
```

Usage
-----

[](#usage)

```
$text = \GamingEngine\StringTools\StringHelper::template(
    'text-{variable}-{values}',
    [
        'variable' => 'hi',
        'values' => 'bye',
    ]
);

// Yields - text-hi-bye
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Andrew Judd](https://github.com/gaming-engine)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~62 days

Total

2

Last Release

1719d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c1a37465afdee14b2740a387deaae40ac376e38015db7af98f90b7fd97fed22?d=identicon)[awjudd](/maintainers/awjudd)

---

Top Contributors

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

---

Tags

phpstringtemplatingstringgaming-engine

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gaming-engine-string-tools/health.svg)

```
[![Health](https://phpackages.com/badges/gaming-engine-string-tools/health.svg)](https://phpackages.com/packages/gaming-engine-string-tools)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k417.9M1.7k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.2M192](/packages/danielstjules-stringy)[spatie/string

String handling evolved

5604.6M24](/packages/spatie-string)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4265.3M23](/packages/kwn-number-to-words)[coduo/php-to-string

Simple library that converts PHP value into strings

26913.1M13](/packages/coduo-php-to-string)[opis/string

Multibyte strings as objects

7424.5M8](/packages/opis-string)

PHPackages © 2026

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