Download the PHP package algsupport/yii2-swiperjs-8 without Composer

On this page you can find all versions of the php package algsupport/yii2-swiperjs-8. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-swiperjs-8

Yii2 swiper js 8 slider widget

About

This is yii2 extention widget renders js slider Swiper. This widget allows render slider in web page simply. Created for Yii2 framework.

This widget is based on the work of coderius.

The sole purpose of this repository is to upgrade the swiperjs library to the latest version.

Yii2 swiper slider widget example

Yii2 swiper slider widget example

Installation

The preferred way to install this extension is through composer.

First download extention. Run the command in the terminal:

or add in composer.json

and run composer update

Usage

Widger with minimum options

You can only specify content for slides. This parameter is required.

In all files with widget put namespace to use class like:

In view file render widget:

Widget with more options:

You can customize the parameters of the widget

In view file render widget:

Widget options

Events:

Usage in widget:

showScrollbar: true | false. Default is false

showPagination: true | false. Default is true

slides: string | array | . Contents slides content like or any string. Or array with keys: value, options. value maybe like string or Closure (function($tag, $index, $self){}). Example:

clientOptions: array. This options is pasted when initialize Swiper js (new Swiper('options here')). Please, remember that if you are required to add javascript to the configuration of the js plugin and is required to be plain JS, make use of JsExpression. That class was made by Yii for that specific purpose. For example:

options: array. This options is pasted when rendered dom elements. Various attributes for html elements are set here. This params allowed only for all template items:

It is best to use constants to specify template elements:

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of yii2-swiperjs-8 with dependencies

PHP Build Version
Package Version
Requires php Version >=8
yiisoft/yii2 Version 2.0.45
npm-asset/swiper Version 11.1.14
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package algsupport/yii2-swiperjs-8 contains the following files

Loading the files please wait ....