micheldiemer / mbstring
Complementary functions for the mbstring extension
1.0.0-beta4
2025-03-25 21:55 UTC
Requires
- php: >=8.1
- ext-mbstring: *
This package is auto-updated.
Last update: 2026-03-12 01:19:54 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.