定制 itsolutionssg/yii2-swiper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

itsolutionssg/yii2-swiper

最新稳定版本:v3.1.0

Composer 安装命令:

composer require itsolutionssg/yii2-swiper

包简介

Yii2 extension for Swiper slider; Php 8.2 ready;

README 文档

README

Yii2 widget for Swiper slider. See more here: https://github.com/nolimits4web/Swiper/.

You can find examples in demos folder.

Also you can read documentation.

Installation

You can get this extension through Composer.

Either run in terminal

$ php composer.phar require "itsolutionssg/yii2-swiper" "*"

or add

"itsolutionssg/yii2-swiper" : "*"

to the require section of your application's composer.json file.

Usage

 
<?php
/**
 * @var \yii\web\View $this
 */
use ItSolutionsSG\yii2\swiper\Swiper;

echo Swiper::widget( [
  'items'         => [
    [ 'background' => 'http://lorempixel.com/600/600/nature/1' ],
    [ 'background' => 'http://lorempixel.com/600/600/nature/2' ],
    [ 'background' => 'http://lorempixel.com/600/600/nature/3' ],
    [ 'background' => 'http://lorempixel.com/600/600/nature/4' ],
    [ 'background' => 'http://lorempixel.com/600/600/nature/5' ]
  ],
  'behaviours'    => [
    'pagination'
  ],
  'pluginOptions' => [
    'grabCursor'     => true,
    'centeredSlides' => true,
    'slidesPerView'  => 'auto',
    'effect'         => 'coverflow',
    'coverflow'      => [
        'rotate'       => 50,
        'stretch'      => 0,
        'depth'        => 100,
        'modifier'     => 1,
        'slideShadows' => true
    ]
  ]
] );
 

Tests

You can execute unit tests from root dir with command:


composer run-script unit-test


Thanks

To https://github.com/romka-chev for given me the opportunity to fork his project and get it working again.

Issues

If some problems occurred, you can create issue.

Thank you for attention.

Credits

https://it-solutions-goehring.de

https://computerservice-goehring.de/

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 20
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-28