PHPackages                             nox7/multibyte-strings - 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. nox7/multibyte-strings

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

nox7/multibyte-strings
======================

1.0.5(1y ago)080UnlicensePHPPHP &gt;=8.0

Since Aug 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nox7/multibyte-php-strings)[ Packagist](https://packagist.org/packages/nox7/multibyte-strings)[ RSS](/packages/nox7-multibyte-strings/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Multibyte PHP Strings
=====================

[](#multibyte-php-strings)

An ongoing helper library to make working with multibyte strings easier in PHP.

Purpose
-------

[](#purpose)

By default, the majority of PHP functions revolve around byte count instead of character count. If, for example, you want to find the position of a string stub inside a larger string that includes multibyte characters (UTF-8), then the returning positions will be incorrect.

Usage
-----

[](#usage)

### Finding a Stub in a String

[](#finding-a-stub-in-a-string)

```
require_once __DIR__ . "/vendor/autoload.php";

$string = getSubStringWithPadding(
    start: $firstMatch[1],
    stubMultiByteLength: $multibyteLengthOfQuery,
    padding: 35,
);

// $stubResult is an instance of MultibyteStrings\StubResult
printf("Before: {$stubResult->beforeStub}\nStub: {$stubResult->stub}\nAfter: {$stubResult->afterStub}");
```

###  Health Score

30

—

LowBetter than 61% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~174 days

Recently: every ~208 days

Total

6

Last Release

581d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43ad5b05b2e9f81a045812355a596a0786885b1fe94f1cad0e3b35d4642125ba?d=identicon)[nox7](/maintainers/nox7)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nox7-multibyte-strings/health.svg)

```
[![Health](https://phpackages.com/badges/nox7-multibyte-strings/health.svg)](https://phpackages.com/packages/nox7-multibyte-strings)
```

###  Alternatives

[rs/laravel-version-control

Foundations for making your app version controlled. Provides migration, blueprint and base models. Will make your app GxP compliant if you exclusively use the VC models and table structure as set out in this package.

1218.1k](/packages/rs-laravel-version-control)

PHPackages © 2026

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