sersid / yii2-owl-carousel-asset
Adding OwlCarousel to your Yii2 project via Composer
Installs: 1 942
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/owl.carousel: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-21 18:23:00 UTC
README
Adding OwlCarousel to your Yii2 project via Composer
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist sersid/yii2-owl-carousel-asset "*"
or add
"sersid/yii2-owl-carousel-asset": "*"
to the require section of your composer.json
file.
Usage
The following example is if you wish to register the bundle on a specific view
// 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:
class AppAsset extends AssetBundle { public $depends = [ ... 'sersid\owlcarousel\Asset' ]; }