Download the PHP package genj/thumbnail-bundle without Composer

On this page you can find all versions of the php package genj/thumbnail-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 thumbnail-bundle

GenjThumbnailBundle

Features:

Requirements

Optional

Installation

Usage

To generate an URL to a thumbnail:

To grab image info (width and height):

Notes

Make sure you limit the length of your slug field, because browser url may be limited.

Setup AWS-S3 (optional)

This is only required if the site will use S3 as a CDN to store thumbnails.

Create and configure a bucket on AWS-S3

Testing the AWS-S3 CDN

To test if the setup is working, you should do the following with an image that is accessed by the website using the twig thumbnail filter.

  1. After uploading an image in the website and seeing it appear on the site, that image path should be available in the AWS-S3 bucket aswell. (images are not uploaded to S3 until they are requested from the site)

  2. Deleting the image should make the image disappear from the S3 bucket. ¡
  3. Uploading a new image over an existing image should delete the old image on S3, after which requesting it from the site should add a copy of the new image.

  4. Images uploaded to the S3 bucket should be publicly available because of the defined policy.

  5. Accessing an image on S3 that does not exist should cause S3 to redirect back to the website.

Setup Cloudflare (optional)

The bundle supports the purging of thumbnails from Cloudflare CDN. This is handled by the CloudflarePurger and is disabled by default. The CloudflarePurger also listens for the VichUploaderBundle event vich_uploader.pre_remove and will purge the original uploaded file too. To enable it, do the following.

Testing Cloudflare CDN

To test if the setup is working, you should do the following with an image that is accessed by the website using the twig thumbnail filter. Note that there can be a few seconds of delay because of the way information is distributed amongst the Cloudflare nodes.

  1. After uploading an image in the website and seeing it appear on the site, hitting it with curl should give CF-Cache-Status: HIT:

  2. Deleting the image should purge the thumbnail from Cloudflare caches. The next hit with curl should give CF-Cache-Status: MISS:

  3. Uploading a new image over an existing image should purge the thumbnail from Cloudflare caches, so a subsequent curl hit should result in CF-Cache-Status: MISS. This will cache the thumbnail, so the curl hit after that should give CF-Cache-Status: HIT.

  4. Accessing a thumbnail on Cloudflare that does not exist, should show the website's 404 page and not cache it. So repeatedly requesting a non-existing should keep giving CF-Cache-Status: MISS.

All versions of thumbnail-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/symfony Version >=2.5,<3.0-dev
sensio/framework-extra-bundle Version ~3.0
vich/uploader-bundle Version 0.14.*
liip/imagine-bundle Version dev-master
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 genj/thumbnail-bundle contains the following files

Loading the files please wait ....