Download the PHP package onigoetz/imagecache without Composer

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

Imagecache

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

Automatically generate images at the size you need them with presets

Works with any framework

How it works

Provided your images folder is images, your cache folder is cache and you have a preset called 200x200

When you call the url /images/cache/200x200/image.jpg and the file doesn't exist it will automatically take the file images/image.jpg, apply the preset to it, return it to the client and save it at the request's path to serve it from the webserver the next time.

Here is the folder structure:

An url to a cached image is built as follows :

/<image folder>/<cache folder>/<preset name>/<file name>

Image files can be in sub-folders, for example images/avatars/me.jpg will have this url with a 40x40 preset : images/cache/40x40/avatars/me.jpg

Prerequisites

For it to work you need

Installation

Preset configuration

The most important part of the module, the presets.

They're made of a a key with an array of actions to apply.

The key is the name of the preset you will use in the URL.

My recommendation is to put the size of the final image in the preset name, this allows for more reusability in your presets. Because if you create a rule named for example "thumbnails" and that your layout changes the sizes of your thumbnails but only in some places, you'll soon end up with a mess with your preset names.

Preset structure

Action structure

Complete list of actions and options

Example

Retina Images

This package also helps to generate image for retina displays. there are two ways for this.

With plugins like retina.js the page will automatically try urls with @2x just before the extension.

When a normal image's url is /images/cache/200x200/koala.jpg it will resolve to the original file koala.jpg.

But if you call the url /images/cache/200x200/[email protected] it will also resolve to the file koala.jpg.

This will take the 200x200 preset and double all it's values, so if you crop your images to 200x200 pixels, it will now be a 400x400 pixels image.

And it will save it back to images/cache/200x200/[email protected] so your apache/nginx will be able to serve it on next visit.


All versions of imagecache with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
guzzlehttp/psr7 Version ^2.7
intervention/image Version ^3.3
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 onigoetz/imagecache contains the following files

Loading the files please wait ....