symfony/polyfill-mbstring
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
The Symfony Polyfill Mbstring is a component that offers a partial, native PHP implementation for the Mbstring extension. This powerful tool allows PHP developers to write code that involves multibyte string handling even when this PHP extension is not installed on their servers.
To use the Symfony Polyfill Mbstring, simply require the package in your project using Composer by running the command composer require symfony/polyfill-mbstring
. After it is installed, you can use any Mbstring function as if the extension was enabled on your server. For example:
$text = "Hello, world!";
$length = mb_strlen($text);
In this example, mb_strlen()
is a function provided by the Mbstring extension, but can be used without having the actual extension installed, thanks to the Symfony Polyfill Mbstring.
The primary documentation for Symfony Polyfill Mbstring can be found on its GitHub page. Additional relevant information may also be found in the main Polyfill README offered by Symfony.