elvanto/litemoji
LitEmoji is a lightweight PHP library for converting emoji between Unicode, HTML entities, and :shortcode: formats. Includes emoji stripping plus configurable shortcode exclusions and aliases. Works with UTF-8 and can accept encoding hints.
Str helper. No architectural conflicts introduced.🧑🤝🧑 family pairs).Validator; no API changes.composer.json for conflicts.🧑🔬, 🌍). Risk of:
👨👩👧👦 → 👨👩👧👦).Emoji::toUnicode(':obsolete:')).Emoji::getAll() to audit mappings post-upgrade.Log::warning().laravel-debugbar in high-traffic endpoints.🇺🇦), ZWJ sequences, and skin-tone modifiers.🧑🔬, 🌍).:smile: → 😀) still work.🧑🔬)? If not, can the package be pinned to a specific Emojibase version?🧑🔬).spatie/laravel-markdown for Emojibase 16 emoji in posts.php artisan tinker; Emoji::getAll() | grep "🧑".composer require elvanto/litemoji:^5.2.0.{{ Emoji::toHtml(':new_emoji:') }}.👨👩👧👦 → 👨👩👧👦).5.2.0 methods.UPDATE posts SET content = REPLACE(content, ':old:', ':new:')).use Elvanto\Litemoji\Facades\Emoji).emoji package.symfony/string or league/html-to-markdown.🇺🇦). Test RTL languages with setlocale().dd(Emoji::getAll()) to inspect Emojibase 16 mappings.Log::warning("Deprecated emoji found: $emoji").🧑🔬 → :scientist:).Cache::rememberForever()).ConvertLegacyEmojiJob).shortcode/unicode columns for new emoji-heavy queries.throttle middleware for abuse prevention.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Emojibase 16 emoji rendering fails | Broken UI for new emoji (e.g., 🧑🔬). |
Fallback to shortcode or placeholder. |
| Deprecated emoji in legacy data | Inconsistent displays. | Auto-migrate via Laravel migrations. |
| PHP 8.3/8.4 breaking changes |
How can I help you explore Laravel packages today?