PHPackages                             micheldiemer/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. micheldiemer/mbstring

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

micheldiemer/mbstring
=====================

Complementary functions for the mbstring extension

1.0.0-beta4(1y ago)0495MITPHPPHP &gt;=8.1

Since Mar 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/micheldiemer/php-composer-mbstring)[ Packagist](https://packagist.org/packages/micheldiemer/mbstring)[ RSS](/packages/micheldiemer-mbstring/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (5)

`mb_str_replace`, `mb_str_contains`, `mb_str_ends_with`, `mb_str_starts_with`, `mb_ucfirst`, `mb_lcfirst`
=========================================================================================================

[](#mb_str_replace-mb_str_contains-mb_str_ends_with-mb_str_starts_with-mb_ucfirst-mb_lcfirst)

Provides PHP `mb_*` functions.

Defines `mb_*` functions implemented by PHP 8.4 only if they do not exist (tested with `function_exists`).

Using code from `polyfills/mb-trim` : [https://github.com/PHP-Polyfills/mb\_trim](https://github.com/PHP-Polyfills/mb_trim) and other sources (Internet).

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

[](#installation)

```
composer require micheldiemer/mbstring
```

Usage
-----

[](#usage)

Simply use the `mb_str_replace`, `mb_str_contains`, `mb_str_ends_with`, `mb_str_starts_with`, `mb_ucfirst`, `mb_lcfirst` functions as if they were declared.

Contributions
-------------

[](#contributions)

Contributions are welcome either as a GitHub issue or a PR to this repo.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance46

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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

Total

4

Last Release

418d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[dnoegel/php-xdg-base-dir

implementation of xdg base directory specification for php

6.3k239.4M16](/packages/dnoegel-php-xdg-base-dir)[thiagoalessio/tesseract_ocr

A wrapper to work with Tesseract OCR inside PHP.

3.0k3.3M25](/packages/thiagoalessio-tesseract-ocr)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[mark-gerarts/auto-mapper-plus

An AutoMapper for PHP

5623.2M21](/packages/mark-gerarts-auto-mapper-plus)[wamania/php-stemmer

Native PHP Stemmer

1434.0M33](/packages/wamania-php-stemmer)[geocoder-php/plugin

Plugins to Geocoder providers

705.1M2](/packages/geocoder-php-plugin)

PHPackages © 2026

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