PHP code example of m-tymchyk / emoji-flag

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

    

m-tymchyk / emoji-flag example snippets


use EmojiFlag\EmojiFlag;

# Single flag
echo EmojiFlag::emojiFlag('uk'); # 🇬🇧

# String of multiple flags
echo EmojiFlag::emojiFlag('ukcwsxap'); # 🇬🇧🇳🇱🇳🇱🏴