PHP code example of unicodeveloper / laravel-emoji
1. Go to this page and download the library: Download unicodeveloper/laravel-emoji library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
unicodeveloper / laravel-emoji example snippets
'aliases' => [
...
'Emoji' => Unicodeveloper\Emoji\Facades\Emoji::class,
...
]
>> Emoji::findByAlias("kissing_heart")
=> "😘"
>> Emoji::findByName("sunglasses")
=> "😎"
>> Emoji::findByUnicode("\u{1F603}")
=> "smiley"