PHPackages                             dnaber/string-theory - 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. dnaber/string-theory

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

dnaber/string-theory
====================

Objective multi-byte string handling

1.0.0-alpha(10y ago)0451[1 issues](https://github.com/dnaber-de/string-theory/issues)MITPHPPHP &gt;=5.5

Since Mar 5Pushed 9y agoCompare

[ Source](https://github.com/dnaber-de/string-theory)[ Packagist](https://packagist.org/packages/dnaber/string-theory)[ RSS](/packages/dnaber-string-theory/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

StringType Theory
=================

[](#stringtype-theory)

Objective multi-byte string handling in PHP.

public API
----------

[](#public-api)

### `StringTheory\Type\StringType`

[](#stringtheorytypestringtype)

The basic string interface.

### `StringTheory\Type\MbString`

[](#stringtheorytypembstring)

Implementation of `StringType` for multi-byte strings. Default encoding is set to `UTF-8`.

Example:

```
use StringTheory\Type;

$string = new Type\MbString( '苍天有' );

echo $string[ 0 ]; // 苍
echo $string[ 2 ]; // 有
var_dump( isset( $string[ 3 ] ) ); // false
```

### `StringTheory\Model\Scanner`

[](#stringtheorymodelscanner)

Basic scanner interface that allows a character sequential iteration of a string.

### `StringTheory\Model\MbScanner`

[](#stringtheorymodelmbscanner)

Implementation of the `Scanner` interface for multi-byte strings. Default encoding is set to `UTF-8`.

Example:

```
use StringTheory\Model;

$scanner = new Model\MbScanner( 'abc' );

echo $scanner->current(); // a

$scanner->next();
$scanner->next();
echo $scanner->current(); // c

$scanner->previous();
echo $scanner->current(); // b
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

3769d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9927d052ac9418f26bc23eba4e8f88f71a353f94b34b3ec7cc51bbe9468a7867?d=identicon)[dnaber-de](/maintainers/dnaber-de)

---

Top Contributors

[![dnaber-de](https://avatars.githubusercontent.com/u/1133205?v=4)](https://github.com/dnaber-de "dnaber-de (6 commits)")

---

Tags

utf8stringmulti-bytescanner

### Embed Badge

![Health badge](/badges/dnaber-string-theory/health.svg)

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

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

Multibyte strings as objects

7424.5M8](/packages/opis-string)[voku/portable-utf8

Portable UTF-8 library - performance optimized (unicode) string functions for php.

51923.1M48](/packages/voku-portable-utf8)[kwn/number-to-words

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

4285.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)[clue/utf8-react

Streaming UTF-8 parser, built on top of ReactPHP.

6610.7M3](/packages/clue-utf8-react)

PHPackages © 2026

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