tugmaks / yii2-flag-icons
yii2 world flag widget
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-04-24 21:17:48 UTC
README
yii2 world flag widget
Installation
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.
Usage
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