Skip to content

micheldiemer/php-composer-mbstring

Repository files navigation

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 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.

About

Complementary functions for the mbstring extension

Resources

License

Stars

Watchers

Forks

Packages

No packages published