PHPackages                             jpuck/mbstring - 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. jpuck/mbstring

ActiveLibrary

jpuck/mbstring
==============

Methods for handling multibyte string manipulations.

0.1.0(8y ago)097GPL-3.0+PHPPHP ^7.0

Since Oct 24Pushed 8y ago1 watchersCompare

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

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

multibyte string methods
========================

[](#multibyte-string-methods)

Methods for handling multibyte string manipulations.

[![Build Status](https://camo.githubusercontent.com/45349046d506ef7c935822bf169dfefae13ee9d4dc74855d821d4bd2bc566a1f/68747470733a2f2f7472617669732d63692e6f72672f6a7075636b2f6d62737472696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jpuck/mbstring)[![Codecov](https://camo.githubusercontent.com/c7bb23c26f1d929e6686553aec2b8b73fff661aa982a8875fda22c56f5210824/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6a7075636b2f6d62737472696e672f6d61737465722e737667)](https://codecov.io/gh/jpuck/mbstring/branch/master)

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

[](#installation)

via [composer](https://getcomposer.org):

```
composer require jpuck/mbstring

```

Usage
-----

[](#usage)

See the [tests](./tests) for more examples.

### Case Map

[](#case-map)

Creates an index of uppercase character positions in a string that can be mapped to other strings.

```
$original = '🔥 Foó, foó FOÓ 😁';
$casemap = new CaseMap($original);
$replaced = mb_eregi_replace('foó', 'bår', $original);
$restored = $casemap->transform($replaced);

echo "original: $original\n";
echo "replaced: $replaced\n";
echo "restored: $restored\n";
```

> ```
> original: 🔥 Foó, foó FOÓ 😁
> replaced: 🔥 bår, bår bår 😁
> restored: 🔥 Bår, bår BÅR 😁
>
> ```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

3119d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3f43ad248cd9c696b067b19e4e18856d78a8b2e4f2c3ee21a1d3d5cead5610?d=identicon)[jpuck](/maintainers/jpuck)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jpuck-mbstring/health.svg)

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

PHPackages © 2026

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