Registry / utility / symfony-polyfill-mbstring

symfony-polyfill-mbstring

JSON →
library1.38.2phppackagistunverified

Provides a PHP polyfill for the Mbstring extension when it is not available.

composer require symfony/polyfill-mbstring
INSTALL
IMPORT
SIG · SYMFONY-POLYFILL-M
S
symfony-polyfill-mbstring
utilityphpv1.38.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mbstring
use Symfony\Polyfill\Mbstring\Mbstring;

Use the polyfill to call mb_strlen without the native extension.

use Symfony\Polyfill\Mbstring\Mbstring; $result = Mbstring::mb_strlen('Hello');
Debug
Known issues
gotchaPolyfill only activates if the mbstring extension is missing; may cause unexpected behavior if extension partially loaded.
fix
Ensure mbstring extension is fully disabled or enabled consistently across environments.
affects: >=1.0.0
Upgrade
Version history
1.38.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
symfony-polyfill-mbstring — pip install symfony-polyfill-mbstring · libregistry