voku/portable-utf8
High-performance UTF-8 helper library for PHP with portable polyfills for mbstring and intl features. Provides fast string operations, validation, normalization, encoding fixes, and safe text handling across environments without extra extensions.
mbstring/intl (e.g., minimal Docker images, shared hosting, legacy systems).utf8_encode/utf8_decode safely).mbstring is guaranteed available and consistent across all environments (e.g., controlled cloud infrastructure).polyfill-mbstring for simpler projects where full UTF-8 control isn’t critical.mbstring is significantly faster (e.g., high-volume string processing).mbstring with automatic fallbacks, fluent API for chaining operations, and built-in sanitization. Integrates in minutes via Composer, requires minimal code changes (e.g., swap mb_strlen → utf8_strlen), and solves cross-platform UTF-8 inconsistencies without adding dependencies. Ideal for edge cases where Laravel’s Str helpers fall short."How can I help you explore Laravel packages today?