PHPackages                             jdelta/php-string-max - 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. jdelta/php-string-max

Abandoned → [jxcodes/php-string-max](/?search=jxcodes%2Fphp-string-max)Library[Templating &amp; Views](/categories/templating)

jdelta/php-string-max
=====================

Util functions for string formating.

v1.3.1(1y ago)0123MITPHPPHP &gt;=5.5

Since Sep 4Pushed 1y agoCompare

[ Source](https://github.com/jxcodes/php-string-max)[ Packagist](https://packagist.org/packages/jdelta/php-string-max)[ Docs](https://jxcodes.github.io/php-string-max)[ RSS](/packages/jdelta-php-string-max/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (5)DependenciesVersions (7)Used By (0)

StringMax
=========

[](#stringmax)

Singleton class for string formating and templating.

Install
=======

[](#install)

```
composer require jlibs/php-string-max
```

Usage:
======

[](#usage)

```
require __DIR__ . '/../vendor/autoload.php';

use JLibs\StringMax;
```

Example 1:

```
echo StringMax::format(
    'Hi {{name}}, keep {{tip}}!',
    [
        'name' => 'developer',
        'tip' => 'building'
   ]
);
// prints: Hi developer, keep building!
```

Example 2:

```
$result = StringMax::replaceTokensInArray([
        'Hi {{name}}, remember to be {{tip}}.',
        'Because {{myTarget}} love nice {{myTarget}}',
        'and' => [
            'the world is better if we have more {{mates}}.'
        ]
    ],
    [
        'name'      => 'developer',
        'tip'       => 'nice',
        'myTarget'  => 'people',
        'mates'     => 'friends'
    ]
);
/*
Results:
$result = [
        'Hi developer, remember to be nice.',
        'Because people love nice friends',
        'and' => [
            'the world is better if we have more friends.'
        ]
]
*/
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

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

Total

5

Last Release

694d ago

PHP version history (2 changes)v1.0PHP ^5.3.3 || ^7.0

v1.3.1PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd796c31b17a33afd4f92bf0ed6841104715d951c45d0d1263fa0ccea5fe76a1?d=identicon)[jaimecruz](/maintainers/jaimecruz)

---

Top Contributors

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

---

Tags

stringformattemplateremplace

### Embed Badge

![Health badge](/badges/jdelta-php-string-max/health.svg)

```
[![Health](https://phpackages.com/badges/jdelta-php-string-max/health.svg)](https://phpackages.com/packages/jdelta-php-string-max)
```

###  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)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

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