yii-ui / yii2-flag-icon-css-asset-bundle
Flag icon css asset bundle for Yii 2.
Requires
- php: >=7.1
- components/flag-icon-css: ^3.3
- yiisoft/yii2: ^2.0
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2022-04-06 17:29:51 UTC
README
This is an Yii framework 2.0 asset bundle of the Lipis flag-icon-css package.
If you are looking for a widget, please install yii-ui/yii2-flag-icon-css-widget.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require yii-ui/yii2-flag-icon-css-asset-bundle
or add
"yii-ui/yii2-flag-icon-css-asset-bundle": "^1.0"
to the require section of your composer.json
file.
Usage
in your layout file (ex. views/layouts/main.php):
\yiiui\yii2flagiconcss\assets\FlagIconCssAsset::register($this);
or as dependency in your app asset bundle:
namespace app\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
public $sourcePath = '@app/assets';
public $js = [
'js/main.js',
];
public $css = [
'css/main.scss',
];
public $depends = [
'yiiui\yii2flagiconcss\assets\FlagIconCssAsset'
];
}
See https://www.yii-ui.com/packages/yii2-flag-icon-css-asset-bundle 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-asset-bundle/docs.
License
yii2-flag-icon-css-asset-bundle is released under the MIT License. See the LICENSE for details.