Yii UI - Yii2 Flag icon css - Widget ¶
This is an Yii framework 2.0 widget of the Lipis flag-icon-css package.
If you are looking for the asset bundle, please install yii-ui/yii2-flag-icon-css-asset-bundle.
Installation ¶
The preferred way to install this extension is through composer.
Either run
php composer.phar require yii-ui/yii2-flag-icon-css-widget
or add
"yii-ui/yii2-flag-icon-css-widget": "^1.0"
to the require section of your composer.json
file.
Usage ¶
use yiiui\yii2flagiconcss\widget\FlagIcon;
echo FlagIcon::widget([
'countryCode' => 'de',
'options' => [
'class' => 'example-flag'
],
'squared' => true,
]);
See https://www.yii-ui.com/packages/yii2-flag-icon-css-widget for more infos. For plugin configuration see Lipis flag-icon-css Documentation.
Documentation ¶
Documentation can be found at https://www.yii-ui.com/packages/yii2-flag-icon-css-widget/docs.
License ¶
yii2-flag-icon-css-widget is released under the MIT License. See the LICENSE for details.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.