Download the PHP package glaivepro/image without Composer

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

Image

Image manipulation via URLs for Laravel. It provides a URL interface, while the manipulations themselves are done by Intervention.

The manipulated files are stored at the requested URL so the manipulation won't be repeated, but the file will directly be served by your web server.

This package is heavily inspired by folklore/image.

Installation

Currently this package does not publish any config, but the manipulations are done by intervention. In case you need to change the driver to imagick, you should configure intervention.

Usage

Let us consider an image that's publicly accessible as example.com/img/some.jpg.

This package will let you get a downsized and cropped version of this file via the URL example.com/img/some-image(120x150).jpg. The manipulated image will be stored in the img directory as some-image(120x150).jpg so that the next request to example.com/img/some-image(120x150).jpg will be handled by your web server providing the stored file.

If you want to downsize, but keep the aspect ratio, skip one of the dimensions:

Few other manipulations are available as well:

Generating URLs

The simple (size constraining) URIs can be generated via our facade:

Note The method is named url for compatibility with folklore/image. Even though this is not intended as a drop-in replacement, this case will be such if you redefine Image facade alias to point to GlaivePro\Image\GPImage.

Full URLs can be generated via the asset method:

More complex URIs can be generated using the stringable Uri class:

Instances of Uri can also be produced by the url and asset methods of the GPImage facade:

Custom filters

You can register your own filters that will receive the intervention instance and any arguments which you can then handle as needed:


All versions of image with dependencies

PHP Build Version
Package Version
Requires intervention/image Version ^2.7
laravel/framework Version ^8.0|^9.0|^10.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 glaivepro/image contains the following files

Loading the files please wait ...