Download the PHP package carbon/vips without Composer

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

Latest stable version Total downloads License GitHub forks GitHub stars GitHub watchers

Carbon.Vips: Blazing fast image processing for Neos and Flow

Your Neos website or Flow application usually uses ImageMagick and GD for rendering smaller versions of your photos, or previews of other media assets. While these libraries are quite powerful, they need a big amount of memory for processing images. It can easily happen for a Neos page with a lot of thumbnails to consume hundreds of Megabytes of RAM to create the respective image files. When the original assets are rather large or you need to process animated GIFs, you might even need Gigabytes of RAM just for rendering that page.

Many hoster and Docker images provides libvips, a low-level code library which can do almost the same things like ImageMagick, but much faster and with a relatively small memory footprint.

It is recommended that you configure all your Flow and Neos projects to use Vips instead of ImageMagick.

Before you start

When you enable Vips for your project, you will also need Vips support in your development environment.

The reason for that is, that you need to be able to run composer update. The package which provides Vips support (rokka/imagine-vips) has a dependency on the vips PHP extension, and if you don't have that extension enabled, Composer will complain about non fulfilled platform requirements.

The solution is easy though: just install PHP Vips for your local environment. Make sure though, that everybody in your team who runs composer update also has Vips installed.

Installing PHP Vips for your development environment

ddev

Just add following line to your ddev config.yaml file:

After you added this, you can restart your container with ddev restart and you are ready to go!

Note: Please set the correct PHP version for the vips package

Local installation

For your development environment you need to install two libraries:

  1. a Vips library for your operating system
  2. a PHP extension which provides bindings to that low-level library

The installation process is explained on the php-vips-ext project site on Github. As an example, if your development system is a Mac and you are using Homebrew as a package manager the installation steps are as follows:

First install the libvips system library:

Next, install the php-vips extensions. This extension is installed via PECL and which will compile the library specifically for your current PHP version:

When everything's working fine, you should be able to see vips in the list of enabled PHP modules when you're running php -m from the command line.

If that does not list vips, you need to enable the extension in your PHP configuration, for example by creating a new file ext-vips.ini in your PHP's conf.d/ folder:

Note

Many parts of this readme are taken from Flownative's blog entry about vips.


All versions of vips with dependencies

PHP Build Version
Package Version
Requires rokka/imagine-vips Version ^0.31.0
jcupitt/vips Version ^1.0
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 carbon/vips contains the following files

Loading the files please wait ....