Download the PHP package eab/fancy-gallery-bundle without Composer

On this page you can find all versions of the php package eab/fancy-gallery-bundle. 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 fancy-gallery-bundle

EabFancyGalleryBundle

Summary

A simple gallery bundle for eZ Publish, using FancyBox.

Author

Andy Caiger [email protected]

Copyright

Copyright (C) 2014-2015 Enterprise AB Ltd

License

Licensed under GNU General Public License 2.0

Requirements

Installation

  1. Install EabFancyGalleryBundle using composer:

    composer require --update-no-dev --prefer-dist eab/fancy-gallery-bundle

    Composer will install the bundle and its dependencies into vendors.

    You can use git to install into the src subtree:

    git clone https://github.com/eab-dev/EabFancyGalleryBundle.git src/Eab/FancyGalleryBundle
  2. Enable the bundle in the kernel by editing ezpublish/EzPublishKernel.php:

  3. Install the latest version of FancyBox:

    php ezpublish/console sp:bower:install
    php ezpublish/console assets:install --symlink

If when installing the bower assets you see an error message like:

ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/fancyapps/fancyBox.git", exit code of #128 fatal: unable to connect to github.com

the quick workaround is to disable the git: protocol:

git config --global url."https://".insteadOf git://

and run the install command again.

Configuration

If your bundle is not extending eZDemoBundle, you need to tell EabFancyGalleryBundle which pagelayout template to use. There are two easy ways to do this:

  1. Edit ezpublish/config/config.yml:

    eab_fancy_gallery:
        pagelayout: AcmeMyBundle::pagelayout.html.twig
  2. In your own bundle, edit a file such as src/Acme/MyBundle/Resources/config/services.yml and add:

    parameters:
        eab_fancy_gallery.pagelayout: AcmeMyBundle::pagelayout.html.twig

    With this second method make sure that your bundle is loaded after EabFancyGalleryBundle.

Customizing

The following settings can be configured in the same way as pagelayout:

You can also override the templates by copying Resources/config/override.yaml into your own bundle's configuration and changing the controllers or templates (hint: change the keys e.g. change image: to image_override:).

The FancyBox CSS is loaded by the gallery template. If you want to load it on all pages you need to:

  1. Override full/gallery.html.twig with your own template that doesn't load the CSS.

  2. Edit your page_header_style.html.twig template and include the FancyBox CSS asset:

    {% stylesheets filter='cssrewrite,?cssmin'
        ...
        'bundles/eabfancygallery/components/fancybox/source/jquery.fancybox.css'
        ...
    %}
    <link rel="stylesheet" type="text/css" href="{{ asset_url }}"/>
    {% endstylesheets %}

Updating

After installing this bundle you can run ezpublish/console sp:bower:install to update the Fancybox assets at any time. Take care: it will update other bower assets as well!

Caveats

  1. This bundle assumes your website uses Bootstrap 3. If it doesn't you'll need to override and modify the templates. See the example template for Bootstrap 2.

  2. The configuration for this bundle is not siteaccess aware. If your site has different layouts for different siteaccesses, you can either override the gallery and image templates for each of your siteaccesses, or else reprogram the way that the 'pagelayout' template variable is set. So please fork the repository, rewrite the code and issue a pull request. Thanks!

All versions of fancy-gallery-bundle with dependencies

PHP Build Version
Package Version
Requires ezsystems/ezpublish-kernel Version >=5.4|>=2014.11
sp/bower-bundle Version @stable
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 eab/fancy-gallery-bundle contains the following files

Loading the files please wait ....