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.
Adopt when your application requires robust, language-aware ASCII conversion without server extension dependencies (e.g., shared hosting without mbstring), or when handling multi-language user input for URLs/filenames. Ideal for Laravel projects needing consistent string processing across diverse environments. Avoid if your project exclusively uses UTF-8 with mbstring already fully integrated and no portability needs, or if the use case is trivial (e.g., single-character accent removal where a simple regex suffices). Do not use if your project targets PHP <7.0 or requires Unicode-aware operations beyond ASCII conversion (e.g., full Unicode normalization).
Executives: "This lightweight, MIT-licensed package ensures our application handles international characters securely and consistently across all environments—critical for user experience, SEO, and data integrity. It eliminates custom code risks and saves engineering time, directly supporting our global expansion goals with zero dependency overhead."
Engineering: "A battle-tested, dependency-free utility with 574+ stars and rigorous testing—integrates in minutes via Composer. Provides reliable ASCII conversion, security sanitization, and multi-language support (e.g., German vs. English rules) without requiring mbstring or iconv. Used by trusted libraries like Stringy, so we avoid reinventing the wheel for string handling."
How can I help you explore Laravel packages today?