dev-master
9999999-devyii2 world flag widget
MIT
The Requires
by Maxim Tugaev
extension yii2
yii2 world flag widget
yii2 world flag widget, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist tugmaks/yii2-flag-icons "*"
or add, (*4)
"tugmaks/yii2-flag-icons": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
php
use \tugmaks\FlagIcons\FlagIcon as FI;
<?= FI::widget([
'size'=> FI::64,
'iso'=>'RU', // Alpha 2 code
'options'=>[
'alt'=>'',
'title=>'',
],
]); ?>
, (*7)
Images source - http://www.icondrawer.com/flag-icons.php, (*8)
yii2 world flag widget
MIT
extension yii2