Add in composer.json
:
{
"require": {
"rmrevin/yii2-imperavi-bundle": "1.0.4"
}
}
In view
<?
// ...
rmrevin\yii\imperavi\AssetBundle::register($this);
or as dependency in your asset bundle
<?
// ...
class AppAsset extends AssetBundle
{
// ...
public $depends = [
// ...
'\rmrevin\yii\imperavi\AssetBundle'
];
}
Comments