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

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

opis/string
===========

Multibyte strings as objects

2.1.0(7mo ago)7420.9M—6.9%8[1 issues](https://github.com/opis/string/issues)[1 PRs](https://github.com/opis/string/pulls)7Apache-2.0PHPPHP ^7.4 || ^8.0CI failing

Since Aug 5Pushed 7mo ago7 watchersCompare

[ Source](https://github.com/opis/string)[ Packagist](https://packagist.org/packages/opis/string)[ Docs](https://opis.io/string)[ RSS](/packages/opis-string/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (14)Used By (7)

Opis String
===========

[](#opis-string)

[![Tests](https://github.com/opis/string/workflows/Tests/badge.svg)](https://github.com/opis/string/actions)[![Packagist Version](https://camo.githubusercontent.com/22dcf492e7df4fcfd286ef38f1084c159f848fa278613c1a678702d0cb801358/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f7069732f737472696e673f6c6162656c3d56657273696f6e)](https://packagist.org/packages/opis/string)[![Packagist Downloads](https://camo.githubusercontent.com/77e054337edd7970321ca218e01aa64d0f583e2269eaf5f1207f3c515439622c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f7069732f737472696e673f6c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/opis/string)[![Packagist License](https://camo.githubusercontent.com/5f11f7dc41a7412b25c8f9a8544b4431453b7f61a282ee556d4e5fd2a96883ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f7069732f737472696e673f636f6c6f723d7465616c266c6162656c3d4c6963656e7365)](https://packagist.org/packages/opis/string)

Multibyte strings
-----------------

[](#multibyte-strings)

**Opis String** is a tiny library that allows you to work with multibyte encoded strings in an object-oriented manner. The library has no dependencies to *mb\_string* or similar PHP extensions.

Documentation
-------------

[](#documentation)

The full documentation for this library can be found [here](https://opis.io/string).

License
-------

[](#license)

**Opis String** is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0 "Apache License").

Requirements
------------

[](#requirements)

- PHP ^7.4 || ^8.0
- ext-json
- ext-iconv

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

[](#installation)

**Opis String** is available on [Packagist](https://packagist.org/packages/opis/string "Packagist"), and it can be installed from a command line interface by using [Composer](https://getcomposer.org "Composer").

```
composer require opis/string
```

Or you could directly reference it into your `composer.json` file as a dependency

```
{
    "require": {
        "opis/string": "^2.1"
    }
}
```

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance65

Regular maintenance activity

Popularity62

Solid adoption and visibility

Community27

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 79.4% 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 ~280 days

Recently: every ~574 days

Total

13

Last Release

213d ago

Major Versions

1.x-dev → 2.0.02021-04-13

PHP version history (3 changes)1.0.0PHP &gt;=5.3.0

1.5.0PHP &gt;=7.0.0

2.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/47afaf3c711dd321c8d09bae2afed928971ec9e9a7593c925749696f04d2fddd?d=identicon)[msarca](/maintainers/msarca)

![](https://www.gravatar.com/avatar/7c720b40eb280d9fd33cc35d74c34b3763c2777bd2502d094625faa367f0dca4?d=identicon)[sorinsarca](/maintainers/sorinsarca)

---

Top Contributors

[![msarca](https://avatars.githubusercontent.com/u/5808737?v=4)](https://github.com/msarca "msarca (112 commits)")[![sorinsarca](https://avatars.githubusercontent.com/u/3427195?v=4)](https://github.com/sorinsarca "sorinsarca (21 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (5 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (2 commits)")[![bastien-phi](https://avatars.githubusercontent.com/u/10199039?v=4)](https://github.com/bastien-phi "bastien-phi (1 commits)")

---

Tags

multibyte-stringsopisphpstringutf-8stringopisstring manipulationmulti-byte

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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.1k394.3M1.5k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)[statamic/stringy

A string manipulation library with multibyte support, forked from @statamic

234.5M14](/packages/statamic-stringy)[danielstjules/sliceable-stringy

Python string slices in PHP

4751.6k1](/packages/danielstjules-sliceable-stringy)[phootwork/lang

Missing PHP language constructs

1224.8M8](/packages/phootwork-lang)

PHPackages © 2026

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