PHP code example of xtomdex / country-flags
1. Go to this page and download the library: Download xtomdex/country-flags 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/ */
xtomdex / country-flags example snippets
$imageUrl = \xtomdex\countryflags\CountryFlag::get('be');
$imageUrl = \xtomdex\countryflags\CountryFlag::get('be', 64);
use \xtomdex\countryflags\CountryFlag;
$imageUrl = CountryFlag::get('be', 32, CountryFlag::STYLE_FLAT);
php composer.phar