PHP code example of matecat / emoji-to-entity-converter

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

    

matecat / emoji-to-entity-converter example snippets


// This will return &#129767;
Emoji::toEntity("🫧");

// This will return 🪥
Emoji::toEmoji("&#129701;");