Introducing Laravel-Emoji 1.0.0
Emoji has become a very important part of this dispensation. We find emojis everywhere these days. From BMM to Whatsapp to Gmail to Twitter and so many services, people have found it useful for expressions of various kinds.
As a developer, you might need to be able to display or manipulate emojis in any application you are working on.
PHP 5 actually supports unicode characters that could be translated into emojis but it requires more code like so:
1 2 3 |
<?php echo json_decode('"uD83DuDE00"'); displays 😀 |
PHP 7 came with a better support for unicode characters. Now, you can display an emoji like so:
1 2 3 |
<?php echo "u{1F60E}"; // displays 😎 |
I built laravel-emoji to make sure you have all of the emoji unicode characters in one place and you can get an emoji simply by calling its name or unicode character like so:
1 2 3 4 5 6 7 8 |
<?php Emoji::findByAlias("kissing_heart"); //displays 😘 Emoji::findByName("sunglasses"); //displays 😎 Emoji::findByUnicode("u{1F60A}"); //displays 'blush' |
If you are building any Laravel 5 Application, you can pull in this package to help you out with anything emoji related.
The github repo is here and it has a very detailed ReadMe.
If you like it, Please STAR the repo
If you have any questions or observations, Please let me know in the comments section.

- How to build your own Youtube – Part 10 - August 1, 2016
- How to build your own Youtube – Part 9 - July 25, 2016
- How to build your own Youtube – Part 8 - July 23, 2016
- How to build your own Youtube – Part 6 - July 6, 2016
- Introducing Laravel Password v1.0 - July 3, 2016
- How to build your own Youtube – Part 5 - June 28, 2016
- How to build your own Youtube – Part 4 - June 23, 2016
- How to build your own Youtube – Part 3 - June 15, 2016
- How to build your own Youtube – Part 2 - June 8, 2016
- How to build your own Youtube – Part 1 - June 1, 2016