PHP code example of rvish / emoji

1. Go to this page and download the library: Download rvish/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/ */

    

rvish / emoji example snippets


Emoji::encode("Test1 Test2 💡 Test3"); // encoding to Bytes (UTF-8)

Emoji::decode("Test1 Test2 \xf0\x9f\x92\xa1 Test3"); // decoding to Native