PHP code example of sunaoka / emoji-parser

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

    

sunaoka / emoji-parser example snippets




use Sunaoka\EmojiParser\EmojiParser;

$emojiParser = new EmojiParser('emoji-test.txt');
$data = $emojiParser->parse();

print_r($data);



use Sunaoka\EmojiParser\EmojiParser;

$options = [
    'sort' => SORT_ASC,
];

$emojiParser = new EmojiParser('emoji-test.txt', $options);
$data = $emojiParser->parse();