PHP code example of modernkernel / yii2-flag-icon-css

1. Go to this page and download the library: Download modernkernel/yii2-flag-icon-css 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/ */

    

modernkernel / yii2-flag-icon-css example snippets


<?= 
	\powerkernel\flagiconcss\Flag::widget([
	    	'tag' => 'span', // flag tag
		'country' => 'xx', // where xx is the ISO 3166-1-alpha-2 code of a country,
		'squared' => false, // set to true if you want to have a squared version flag
		'options' => [] // tag html options
	]);