tugmaks/yii2-flag-icons yii2 world flag widget

extension

yii2 world flag widget

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

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
0 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
19 total downloads