yii-ui/yii2-flag-icon-css-widget

Flag icon css widget for Yii 2.

v1.0.1 2019-07-22 06:44 UTC

README

Latest Stable Version Total Downloads Yii2 License

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.