Download the PHP package drunomics/swiper_gallery without Composer

On this page you can find all versions of the php package drunomics/swiper_gallery. 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 swiper_gallery

Swiper Gallery

Swiper gallery is a custom integration of Swiper for the media gallery.

Table of content

Introduction

This module provides a field formatter that allows a media gallery to be rendered in a preconfigured Swiper gallery.

Features

Limitations

Browser support

Browser from version
Android Browser 4
Chrome 61
Chrome for Android 61
Edge 15
Firefox 57
Internet Explorer 11
Opera 49
Safari 9+604
Safari Mobile 11
Samsung Internet 5.2

Requirements

Supported Modules

Page impression tracking is supported out of the box for the following modules:

When the corresponding JS object is detected it will track an impression on every slide.

Ad entities can be inserted via breaker block (see Ad entities as breakers):

Installation

Configuration

To enable the gallery, the field formatter for a media gallery must be set to Swiper gallery (Gallery formatter).

Since the viewmodes of the slides & preview are also configurable, they should be set up first (Image viewmodes).

It is important to use a separate image style for the gallery slides since it is necessary to alter the image tags to be able to lazy load them with swiper. This is done in a preprocess hook (see swiper_gallery_preprocess_image()).

The used image styles for the slides must then be added to the settings file. To do so, copy the /config/install/swiper_gallery.settings.yml to Drupal's config directory if it wasn't done so during the installation and add one or more image styles to the slide_image_styles variable.

Image viewmodes

Add and configure image viewmodes for the gallery:

Gallery formatter

Select & configure the Swiper Gallery field formatter:

Custom lazy loading icon

To set a custom loading icon, add the scss (or the css equivalent) in your theme like this, eg.:

Ad entities as breakers

If you want to display an AdEntity on every x slide, you can configure the breaker to be an AdDisplay block.

Since we had troubles with loading of ads you need to disable the initialization for the ad entities that are used in the breaker. The ads will be initialized by the gallery (see build/src/components/05-gallery/gallery-ads.js)

The reason for this is because of the looping functionality of swiper, which will generate duplicates of the slides and put them before and after the main slides. The ad entity module would initialize the first ad slide, which is a duplicate, but the visible ad slide would stay uninitialized.

Development / Contributing

For development you can use the Demo as a starting point. You can setup a development environment which contains a full drupal installation within a docker container with test content & automated tests.

For how to build assets see build/README.md

Demo

Try the gallery in a drupal demo installation within a docker container. Visit https://github.com/drunomics/swiper-gallery-demo and follow the README.

Maintainers

Supporting organizations:


All versions of swiper_gallery with dependencies

PHP Build Version
Package Version
No informations.
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 drunomics/swiper_gallery contains the following files

Loading the files please wait ....