paquettg/string-encode
Flexible PHP string encoding helper for multibyte text. Convert strings safely between encodings (UTF-8 by default) with a fluent API, plus utilities for encoding-aware regex handling. Supports PHP 7.2–7.4.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| voku/portable-utf8 | 0.87 | 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. | 518 | 523 | 89 | 513K | 8 | 7.8 | 44.4 | Apache-2.0 | — | |
| symfony/string | 0.83 | Symfony String offers an object-oriented API for working with text, handling bytes, UTF-8 code points, and grapheme clusters in a unified way. It provides convenient, encoding-safe methods for slicing, comparing, searching, and manipulating strings. | 1,784 | 1,792 | 19 | 32M | 0 | 44.4 | 65.0 | MIT | 3 days ago | |
| lasserafn/php-string-script-language | 0.83 | Detect which writing system a string uses with a simple PHP API. Check if text contains Arabic, Latin, Cyrillic, Thai, Han/Chinese, Japanese (Hiragana/Katakana), and many more scripts via boolean helpers like StringScript::isThai($text). | 20 | 22 | 1 | 114K | 0 | 1.3 | 51.6 | MIT | 3 years ago | |
| onnov/detect-encoding | 0.81 | Fast Cyrillic text encoding detector for PHP to replace unreliable mb_detect_encoding. Identifies Windows-1251, KOI8-R, ISO-8859-5 (optionally IBM866/MacCyrillic) using code page ranges, with high accuracy even on short strings and very large texts. | 22 | 23 | 5 | 137K | 1 | 2.2 | 52.1 | MIT | 5 years ago | |
| riimu/kit-phpencoder | 0.81 | Export PHP variables as customizable, readable or compact PHP code. A flexible alternative to var_export() with control over whitespace, array syntax, and useful object conversion—ideal for generated config files and optimized cache output. | 71 | 74 | 5 | 246K | 3 | 4.5 | 49.0 | MIT | 3 years ago | |
| devanoxltd/string-encoder | 0.81 | — | 0 | 0 | 0 | 48 | 0 | 0.6 | 23.4 | MIT | 1 year ago | |
| php-standard-library/str | 0.81 | Unicode-aware string functions for PHP that replace mb_* and standard string functions with a consistent, modern API. Part of the PHP Standard Library, Str offers reliable multibyte-safe handling for everyday string operations. | 1 | 1 | 0 | 80K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| danielstjules/stringy | 0.80 | Stringy is a PHP library for Unicode-safe string manipulation with a fluent, object-oriented API. Chain helpers for trimming, casing, substrings, padding, replacing, slugifying, and more, without worrying about multibyte issues. | 2,429 | 2,471 | 218 | 101K | 18 | 32.0 | 33.2 | MIT | 9 years ago | |
| yiisoft/strings | 0.80 | Yii Strings provides fast, multibyte-safe string utilities for PHP: StringHelper and NumericHelper, Inflector (pluralize, slug), wildcard pattern matching, and optimized combined regex matching with optional memoization. | 49 | 51 | 17 | 90K | 4 | 24.9 | 54.1 | BSD-3-Clause | 1 week ago | |
| voku/stringy | 0.80 | voku/stringy is a PHP string manipulation library with a fluent, chainable API and multibyte/Unicode-safe helpers. It offers common text utilities like trimming, casing, slugging, replacing, and comparisons, aiming for predictable results across encodings. | 180 | 187 | 24 | 57K | 1 | 1.9 | 34.9 | MIT | — | |
| symfony/polyfill-mbstring | 0.80 | Provides a partial, native PHP implementation of the Mbstring extension, letting applications use multibyte string functions even when the mbstring extension is unavailable. Part of the Symfony Polyfill family and released under the MIT license. | 7,815 | 7,846 | 39 | 20M | 0 | 48.5 | 55.2 | MIT | 1 week ago | |
| symfony/polyfill-php84 | 0.80 | Symfony polyfill that backports PHP 8.4 features to earlier PHP versions, including array_find, mb_trim, mb_ucfirst, fpow, bcdivmod, grapheme_str_split, the Deprecated attribute, PDO driver subclasses, and ReflectionConstant. | 146 | 147 | 5 | 25M | 0 | 21.1 | 64.1 | MIT | 1 month ago | |
| zbateson/mb-wrapper | 0.80 | Lightweight PHP wrapper for mbstring that normalizes multibyte string operations across environments. Provides consistent encoding-aware helpers and safe fallbacks when mbstring isn’t available, making string handling more reliable in libraries and apps. | 49 | 49 | 8 | 1M | 0 | 23.7 | 64.9 | BSD-2-Clause | 4 months ago | |
| voku/portable-ascii | 0.79 | PHP 7+ library to transliterate Unicode to portable ASCII for slugs, URLs, and safe filenames. Works without mbstring/iconv, lightweight and easy to bundle. Based on Unidecode/Stringy-style mappings with handy helper methods. | 580 | 580 | 51 | 13M | 22 | 12.1 | 65.7 | MIT | — | |
| juy/character-solver | 0.79 | Laravel middleware that converts specific HTML entities back into characters (e.g., ç→ç, ö→ö, ü→ü). Includes configurable translation map and an enable/disable flag; can run globally or be added manually to the HTTP Kernel. | 1 | 1 | 0 | 0 | 1 | 3.4 | — | MIT | 9 years ago | |
| eventsauce/uuid-encoding | 0.79 | — | 1 | 1 | 0 | 44K | 0 | 0.0 | 55.3 | — | — | |
| patchwork/utf8 | 0.79 | Portable UTF-8 and grapheme cluster handling for PHP. Provides pure-PHP fallbacks for mbstring, iconv, and intl Normalizer/grapheme_* functions plus UTF-8-aware replacements for native string functions, improving reliability across servers. | 626 | 647 | 45 | 91K | 0 | 6.7 | 21.1 | Apache-2.0 | 5 years ago | |
| 1tomany/data-uri-bundle | 0.78 | Symfony bundle wrapping 1tomany/data-uri: auto-configures a denormalizer for TemporaryFileInterface objects and adds a console command to encode files as base64 data URIs. No configuration needed. | 0 | 0 | 0 | 18 | 0 | 10.0 | 14.9 | MIT | 3 months ago | |
| neitanod/forceutf8 | 0.78 | Fix and normalize mixed-encoded PHP strings. ForceUTF8 converts unknown input (UTF-8, Latin-1/ISO-8859-1, Windows-1252, or mixes) to clean UTF-8, and repairs double-encoded “garbled” text via fixUTF8, with optional iconv flags. | 1,630 | 1,644 | 355 | 537K | 12 | 23.7 | 40.3 | — | 8 years ago | |
| hyperf/codec | 0.78 | — | 0 | 0 | 0 | 54K | 1 | 22.5 | 63.0 | MIT | 5 months ago |
How can I help you explore Laravel packages today?