2017 © Pedro Peláez
 

yii2-extension yii2-owl-carousel-asset

Adding OwlCarousel to your Yii2 project via Composer

image

sersid/yii2-owl-carousel-asset

Adding OwlCarousel to your Yii2 project via Composer

  • Friday, December 15, 2017
  • by Sersid
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,307 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Yii2 OwlCarousel Asset

Adding OwlCarousel to your Yii2 project via Composer, (*1)

Installation

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)

Usage

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'
    ];
}

The Versions

15/12 2017

dev-master

9999999-dev

Adding OwlCarousel to your Yii2 project via Composer

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar Sersid

extension yii2 asset owlcarousel owl-carousel owl carousel yii2-owlcarousel