yii2 world flag widget
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist tugmaks/yii2-flag-icons "*"
or add
"tugmaks/yii2-flag-icons": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
use \tugmaks\FlagIcons\FlagIcon as FI;
<?= FI::widget([
'size'=> FI::64,
'iso'=>'RU', // Alpha 2 code
'options'=>[
'alt'=>'',
'title=>'',
],
]); ?>```
Images source - http://www.icondrawer.com/flag-icons.php
No stable releases.
Comments