Download the PHP package mirko-pagliai/php-thumber without Composer

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

php-thumber

CI codecov Codacy Badge CodeFactor

php-thumber is a PHP library for creating thumbnails on the fly and it implements a file cache for thumbnails. It uses intervention/image, working as wrapper.

Did you like this plugin? Its development requires a lot of time for me. Please consider the possibility of making a donation: even a coffee is enough! Thank you.


Requirements and supported formats

php-thumber requires GD Library (>=2.0) or Imagick PHP extension (>=6.5.7).

It's highly preferable to use Imagick, because It provides better performance and a greater number of supported formats.

Supported formats may vary depending on the library used.

JPEG PNG GIF TIF BMP ICO PSD
GD Yes Yes Yes No No No No
Imagick Yes Yes Yes Yes Yes Yes Yes

For more information about supported format, please refer to the Intervention Image documentation.

Installation and configuration

You can install the plugin via composer:

Therefore, before using the library, it may be necessary to configure some constants:

An example:

Otherwise, you can include/require the config/bootstrap.php file, which will auto-determine the driver to use and set a temporary directory where to create thumbnails (on Unix environment, it will be /tmp/php-thumber).

Installation on older PHP versions

Recent packages and the master branch require at least PHP 7.4 and the current development of the code is based on these and later versions of PHP. However, there are still some branches compatible with previous versions of PHP.

For PHP 7.4 or later

The php7.4 branch requires at least PHP 7.4.

In this case, you can install the package as well:

Note that the php7.4 branch will no longer be updated as of January 05, 2024, except for security patches, and it matches the 1.5.5 version.

For PHP 7.2 or later

The php7.2 branch requires at least PHP 7.2.

In this case, you can install the package as well:

Note that the php7.2 branch will no longer be updated as of April 28, 2022, except for security patches, and it matches the 1.4.3 version.

For PHP 5.6 or later

The php5.6 branch requires at least PHP 5.6.

In this case, you can install the package as well:

Note that the php5.6 branch will no longer be updated as of April 22, 2021, except for security patches, and it matches the 1.2.3 version.

How to use

See our wiki:

Refer to our API.

Testing

Some tests belong to the imageEquals group. These tests generate thubnails and compare them with pre-loaded thumbnails (inside tests/examples/comparing_files). By default, these tests are not performed, because the images may be different if generated from different environments and systems.

To exclude these tests, you should run:

Versioning

For transparency and insight into our release cycle and to maintain backward compatibility, php-thumber will be maintained under the Semantic Versioning guidelines.


All versions of php-thumber with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-fileinfo Version *
intervention/image Version ^2.4
mirko-pagliai/php-tools Version ~1.9.2
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 mirko-pagliai/php-thumber contains the following files

Loading the files please wait ....