voku/portable-ascii
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| voku/anti-xss | 0.83 | PHP AntiXSS library to sanitize untrusted HTML and prevent XSS attacks. Cleans input by removing dangerous tags/attributes, filters CSS/JS vectors, and supports UTF-8 and common encodings. Useful for safely handling user-generated content in apps. | 709 | 727 | 117 | 290K | 1 | 7.3 | 36.0 | MIT | — | |
| voku/portable-utf8 | 0.81 | 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. | 520 | 523 | 91 | 385K | 2 | 6.1 | 41.1 | Apache-2.0 | — | |
| symfony/string | 0.80 | Object-oriented string handling for PHP with unified support for raw bytes, UTF-8 code points, and grapheme clusters. Provides robust, consistent string manipulation utilities as part of the Symfony ecosystem. | 1,787 | 1,796 | 19 | 16M | 0 | 42.7 | 64.3 | MIT | 1 week ago | |
| yiisoft/strings | 0.79 | 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 | 19 | 63K | 5 | 14.8 | 48.2 | BSD-3-Clause | 6 months ago | |
| paquettg/string-encode | 0.79 | 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. | 69 | 69 | 21 | 106K | 1 | 1.2 | 43.9 | MIT | — | |
| cocur/slugify | 0.79 | cocur/slugify converts strings into URL-friendly slugs by stripping special characters and transliterating many languages (e.g., ä → ae). Lightweight with no external dependencies, PSR-4, PHP 8.0–8.5, and integrations for Laravel, Symfony, Twig, and more. | 0 | 2,976 | — | 1M | — | 48.0 | 49.8 | — | — | |
| prinsfrank/transliteration | 0.79 | Typed PHP 8.1+ wrapper around ICU Transliterator. Build transliterators with strict, documented arguments instead of opaque rule strings, plus ready-to-use conversion sets for common transformations (e.g., names/addresses, identity verification, multi-language support). | 9 | 9 | 1 | 892 | 0 | 1.9 | 27.0 | MIT | 2 years ago | |
| neitanod/forceutf8 | 0.79 | 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,633 | 1,644 | 358 | 329K | 12 | 23.8 | 37.4 | — | 7 years ago | |
| danielstjules/stringy | 0.79 | 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,438 | 2,478 | 216 | 105K | 17 | 31.7 | 33.3 | MIT | 8 years ago | |
| coduo/php-humanizer | 0.79 | Humanize and format values for people: turn field names into readable labels, truncate plain text or HTML safely to word boundaries, and handle common string transformations. Lightweight PHP utility with simple static APIs. | 1,669 | 1,673 | 109 | 18K | 0 | 29.7 | 16.0 | MIT | 5 months ago | |
| devanoxltd/string-encoder | 0.79 | — | 0 | 0 | 0 | 14 | 0 | 5.4 | 16.9 | MIT | 9 months ago | |
| burxon/letter-exchange | 0.79 | Laravel/PHP package to transliterate between Cyrillic and Latin alphabets. Convert Cyrillic letters to Latin or Latin back to Cyrillic for consistent slugs, search, and text normalization. Install via Composer: burxon/letter-exchange. | 1 | 1 | 0 | 2 | 0 | 0.0 | 4.2 | — | — | |
| lasserafn/php-string-script-language | 0.78 | 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 | 84K | 0 | 1.3 | 49.8 | MIT | 2 years ago | |
| phootwork/lang | 0.78 | phootwork/lang is a lightweight PHP library of language utilities and building blocks, offering common helpers and core abstractions to simplify everyday coding tasks. A small foundation package meant to complement your app or other phootwork components. | 12 | 12 | 0 | 1M | 0 | 6.7 | 55.3 | MIT | 1 year ago | |
| voku/urlify | 0.78 | PHP URL slugifier/transliterator (URLify.js port) that converts UTF-8 strings into readable, URL-safe slugs and filenames. Supports many languages via mapping tables with Portable ASCII fallback, plus helpers like downcode/transliterate and custom char rules. | 25 | 27 | 5 | 43K | 0 | 0.4 | 44.5 | BSD-3-Clause | — | |
| scrivo/highlight.php | 0.78 | Server-side syntax highlighting for PHP using highlight.js grammars. Highlight code blocks in many languages, auto-detect when needed, and render HTML with themes—ideal for docs, blogs, and static site generation without requiring a browser. | 713 | 725 | 44 | 2M | 13 | 17.7 | 51.1 | BSD-3-Clause | 3 years ago | |
| khaled.alshamaa/ar-php | 0.77 | Ar-PHP is a PHP library for Arabic language processing: text shaping and normalization, transliteration, date/hijri handling, numbers-to-words, and other Arabic-specific utilities. Useful for Arabic web apps, reports, and localization. | 333 | 334 | 58 | 119K | 9 | 9.8 | 38.7 | NOASSERTION | 1 year ago | |
| patchwork/utf8 | 0.76 | 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. | 628 | 647 | 46 | 125K | 0 | 6.8 | 22.4 | Apache-2.0 | 5 years ago | |
| voku/stringy | 0.75 | 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. | 179 | 186 | 24 | 35K | 0 | 1.7 | 31.6 | MIT | — |
How can I help you explore Laravel packages today?