Download the PHP package rutkoski/simplify-thumb without Composer

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

Simplify Thumb

Thumbnail generation and image processing, extendable and with a fluent interface.

Usage:

Basic example:

The library uses the method's parameters (like resize/150/150) to check for an existing cache file and uses it instead of recreating the image.

Output

Get the cached filename

or save it to a new location

or overwrite current image

or send the image to the browser

Change formats

Just use the PHP constants (IMAGETYPE_PNG, IMAGETYPE_JPEG, ...):

or

Available methods

Resize

The third parameter in resize changes how images are resized. It defaults to Simplify_Thumb::FIT\_INSIDE. Options for $mode are:

The fourth parameters, $far (force aspect ratio), when true, forces the final image to be exactly $width by $height pixels. The $r, $g, $b and $a parameters set the color for the background, so, for example:

on a 300 x 100px image, would fit the image inside a 150 x 150px box with a black background.

ZoomCrop

Crops the image so that it fills the dimensions you specify. The third parameter specifies wich part of the image will be used.

PHP image filters

Offset

Shrink/enlarge the image canvas and fill background with color.

$top, $right, $bottom and left are relative. Positive numbers make the canvas bigger, negative numbers make it smaller (crops the image).

Custom plugins

Implement custom plugins by extending Simplify_Thumb_Plugin and calling:

where $plugin is the string representing the plugin class.

Example:

Plugin that overlays an image on top of the current one:

then:


All versions of simplify-thumb with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
rutkoski/simplify-functions Version 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 rutkoski/simplify-thumb contains the following files

Loading the files please wait ....