kv4nt/yii2-owl-carousel2 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kv4nt/yii2-owl-carousel2

最新稳定版本:v1.0.5

Composer 安装命令:

composer require kv4nt/yii2-owl-carousel2

包简介

A Yii2 widget for owl carousel 2

README 文档

README

The OwlCarouselWidget is a Yii2 wrapper for the [Owl Carousel 2] (https://owlcarousel2.github.io/OwlCarousel2/)

Latest Stable Version Total Downloads

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist kv4nt/yii2-owl-carousel2 "*" 

or add

"kv4nt/yii2-owl-carousel2": "*" 

to the require section of your composer.json file.

Plugin options

see at https://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html

Usage

Once the extension is installed, simply use it in your code by :

<?php use kv4nt\owlcarousel\OwlCarouselWidget; OwlCarouselWidget::begin([ 'container' => 'div', 'assetType' => OwlCarouselWidget::ASSET_TYPE_CDN, 'jqueryFunction' => 'jQuery',// or $ 'containerOptions' => [ 'id' => 'container-id', 'class' => 'container-class owl-theme' ], 'pluginOptions' => [ 'autoplay' => true, 'autoplayTimeout' => 3000, 'items' => 3, 'loop' => true, 'itemsDesktop' => [1199, 3], 'itemsDesktopSmall' => [979, 3] ] ]); ?> <div class="item-class"><img src="/img/1.jpg" alt="Image 1"></div> <div class="item-class"><img src="/img/2.jpg" alt="Image 2"></div> <div class="item-class"><img src="/img/3.jpg" alt="Image 3"></div> <div class="item-class"><img src="/img/4.jpg" alt="Image 4"></div> <?php OwlCarouselWidget::end(); ?>

统计信息

  • 总下载量: 107.61k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 3
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固