PHP code example of rteeom / isoflags

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

    

rteeom / isoflags example snippets

 

$generator = new \Rteeom\FlagsGenerator();

echo $generator->getEmojiFlag('gb'); // πŸ‡¬πŸ‡§

// or 

echo $generator->getEmojiFlagOrNull('ua'); // πŸ‡ΊπŸ‡¦