dev-master
9999999-devAdding OwlCarousel to your Yii2 project via Composer
BSD-4-Clause
The Requires
- php >=5.4.0
- yiisoft/yii2 *
- bower-asset/owl.carousel *
by Sersid
extension yii2 asset owlcarousel owl-carousel owl carousel yii2-owlcarousel
Adding OwlCarousel to your Yii2 project via Composer
Adding OwlCarousel to your Yii2 project via Composer, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist sersid/yii2-owl-carousel-asset "*"
or add, (*4)
"sersid/yii2-owl-carousel-asset": "*"
to the require section of your composer.json
file., (*5)
The following example is if you wish to register the bundle on a specific view, (*6)
// this code is written on that specific view sersid\owlcarousel\Asset::register($this);
But it could be that you wish to use it as part of another asset bundle or globally registered on your application. For the following example, we going to registered as part of the main application asset bundle AppAsset:, (*7)
class AppAsset extends AssetBundle { public $depends = [ ... 'sersid\owlcarousel\Asset' ]; }
Adding OwlCarousel to your Yii2 project via Composer
BSD-4-Clause
extension yii2 asset owlcarousel owl-carousel owl carousel yii2-owlcarousel