Download the PHP package kreationsbyran/kb-slideshow without Composer

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

KBSlideshow

Latest Stable Version License

Slideshow module for SilverStripe 3.1 that implements back-end support for slideshows/carousels/sliders. For the sake of demonstration it comes with an plug-and-play example using slick. It can easily be removed without disrupting functionality. More about this further down under the slick heading.

Installation

As a general rule of thumb it can be a good idea to back up your database and log into your site as Admin before installing modules, so even though nothing should break, feel free to do so.

Requirements
Using Composer
  1. Open a terminal and cd to your SilverStripe root.
  2. Run composer require kreationsbyran/kb-slideshow.
  3. Go to http://your.site/dev/build?flush=all (replace "your.site" with the url of your website)
Manually
  1. Download the zipped master branch (here).
  2. Move the contents into the root directory of your SilverStripe installation.
  3. Go to http://your.site/dev/build?flush=all (replace "your.site" with the url of your website)
Additionally (optional)

KBSlideshow works well together with SortableGridField which allows for drag-and-drop sorting of the slides.

Usage

In Template

Using <% include KBSlideshow %> in your SilverStripe template will include the default template. You can easily replace or edit this template.

/templates/includes/KBSlideshow.ss markup ouput

├──div.kbslideshow (if exists)
|  └──div.kbslide  (loop)
|     ├──img       (if exists)
|     ├──h1        (if exists)
|     └──p         (if exists)
In CMS

The module extends Page and once installed it will create a tab called "Slideshow" in the CMS of all Pages.

"Image rescale width/height" will set the ratio of all slides to width:height if both options are set. If only one is set, the images will be cropped using SilverStripes Image.SetWidth() or Image.SetHeight() functions. If none are set the selected image won't be rescaled or cropped and can result in heavy load. Recommended to set at least one if slideshow contains images.

Slick

The module comes bundled with a demonstration using slick. To remove the coupling between the module and slick in order to use a different slideshow/slider/carousel library, simply follow these two steps:

  1. Remove /templates/includes/KBSlick.ss.
  2. Remove <% include KBSlick %> from /templates/includes/KBSlideshow.ss.
Settings

If you wish to keep using slick, you'll find the settings located in /templates/includes/KBSlick.ss. There is currently no back-end support for managing slick settings but can easily be added by modifying the KBSlideshow class.

License

Copyright (c) 2015 Kreationsbyrån Sverige AB

Licensed under the MIT License


All versions of kb-slideshow with dependencies

PHP Build Version
Package Version
Requires silverstripe/cms Version ~3.1
silverstripe/framework Version ~3.1
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 kreationsbyran/kb-slideshow contains the following files

Loading the files please wait ...