php-twemoji
php-twemoji copied to clipboard
Easily generate Twemoji URLs
Quite a few new emojies have been added since the releases of spatie/emoji "^2.3.0" (the version this package currently uses). This PR has a updated regex file which now matches...
#13 has updated the base URL, however it seems the tests were mistakenly not updated correctly to reflect that. This PR adjusts the test cases accordingly so they pass again.
As of current, `regexp()` in EmojiText creates a string from scratch on \*every single call*. Since the method is invoked on every replace call, it results in a massive performance...
After HTML parsing I think that it would be nice to not only replace native emojis but also the common colon emoji-name variants. I think that the biggest challenge would...
This is a WIP PR to address #2 - however I will resubmit/force-push this branch once we have #10 merged in to fix PHP 8.1 support fully. As it stands...
The original JavaScript Twemoji client allows replacing all emojis in a given text with the corresponding Twemoji image tag in one go. We should provide a similar method like `Twemoji::parse($html)`...