Download the PHP package crachecode/prestajine without Composer

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

[!WARNING]
This repo is outdated.

Developement has moved to GitLab.

Prestajine

Prestajine is a PrestaShop module that helps to generate images and thumbnails, directly by providing dimensions in the theme templates files, with no extra management from the administration panel. It is based on Tajine which makes use of the Intervention Image library.

Features

Prestajine is an alternative to PrestaShop's original image manager.
It allows you to create images and thumbnails at any dimensions, in a flexible way, without adding any plain background. Desired images dimensions and parameters are to be defined directly in theme templates, while calling <img src="....
Resizing and cache are handled by Tajine.

Currently it only works with products images and jpg.

Requirements

Prestajine requires PHP 5.6 or higher. It works with any version of PrestaShop. Its cache functionality can make use of Apache mod_rewrite, it also allows simpler image URLs, but Apache should not be mandatory. Tajine has not been tested with any other HTTP server though.

Installation

  1. Download this zip.

  2. Upload it from PrestaShop administration panel :
    Module and services -> Add a new module -> choose a file -> upload this module

  3. Install it :
    Prestajine -> Install

Using Prestajine

Images at any dimension can then be accessed via HTTP.
Simply call <img src="{$base_dir}images/{$image.id_image}... from theme templates following this syntax :

{$base_dir}images/{$image.id_image}-[image-name].[width]x[height].[method].[quality].[upsize].jpg

e.g. :

Parameters

name value type description default
width integer thumbnail width (in pixel) n/a
height integer thumbnail height (in pixel) n/a
method basic, fit or max resizing behaviour, see next paragraph fit
quality integer, 0 to 100 thumbnail quality, bigger is better but files are heavier 85
upsize boolean whether or not small images should be enlarged with larger thumbnail size true
text string name of the image (for instance, name of the product) n/a

Method can be set to :

Without mod_rewrite

You should still be able to use this module without mod_rewrite or with a HTTP server other than Apache. However the image URLs to call from the templates would be a bit different (and not so nice) :

{$base_dir}modules/prestajine/image.php?filename={$image.id_image}-product-1.jpg&width=[width]&height=[height]&method=[method]&quality=[quality]&upsize=[upsize]

e.g. :

Notes

Thumbnails are generated when visiting the page on which they are displayed.
Generated thumbnails are saved as image files in /img/prestajine directory.
When using mod_rewrite these files names are the same string as the URL provided for images generation. Therefore Apache doesn't even need to process PHP to display the cached version.
They can safely be deleted to process the generation again.


All versions of prestajine with dependencies

PHP Build Version
Package Version
Requires crachecode/tajine Version ^1.0.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 crachecode/prestajine contains the following files

Loading the files please wait ....