micheldiemer/mbstring

Complementary functions for the mbstring extension

1.0.0-beta4 2025-03-25 21:55 UTC

This package is auto-updated.

Last update: 2025-07-12 00:04:46 UTC


README

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 and other sources (Internet).

Installation

composer require micheldiemer/mbstring

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 are welcome either as a GitHub issue or a PR to this repo.