powerkernel/yii2-flag-icon-css
最新稳定版本:1.0.2
Composer 安装命令:
composer require powerkernel/yii2-flag-icon-css
包简介
flag-icon-css extension for Yii2
README 文档
README
flag-icon-css extension for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist powerkernel/yii2-flag-icon-css "*"
or add
"powerkernel/yii2-flag-icon-css": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \powerkernel\flagiconcss\Flag::widget([ 'tag' => 'span', // flag tag 'country' => 'xx', // where xx is the ISO 3166-1-alpha-2 code of a country, 'squared' => false, // set to true if you want to have a squared version flag 'options' => [] // tag html options ]); ?>
统计信息
- 总下载量: 19.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-11-29