Download the PHP package vis/laravel-glide without Composer

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

A Glide Server Provider for Laravel

Build status Latest Version SensioLabsInsight Quality Score Total Downloads

This package provides a Service Provider that allows you to very easily integrate Glide into a Laravel project.

Glide is a easy on-demand image manipulation library written in PHP. It's part of the League of Extraordinary Packages.

Using this package you'll be able to generate image manipulations on the fly and generate URL's to those images. These URL's will be signed so only you will be able to specify which manipulations should be generated. Every manipulation will be cached.

It's also possible to generate an image manipulation separately and store it wherever you want.

Laravel compatibility

Laravel laravel-glide
4.2.x 1.x
5.x 2.x

Version 2.x with Laravel 5 compatibility will be released february 2015.

Installation

You can install the package through Composer.

You must install this service provider.

This package also comes with a facade, which provides an easy way to generate images.

You can publish the config file of the package using artisan.

The config file looks like this:

The options in the config file are set with sane default values and they should be self-explanatory.

Usage

Generating an image on the fly

Assuming you've got an image named "kayaks.jpg" in (the input directory specified in the config file) you can use this code in a blade view:

The arguments for can also be used as a second (optional) argument for :

The function will output a signed URL to a greyscale version of kayaks.jpg that has a width of 50 pixels. As soon as the URL gets hit by your browser, the image will be generated on the fly. The generated image will be saved in (= the cache directory specified in the input file).

Take a look at the image API of Glide to see which parameters you can pass to the -method.

Generating an image directly on the server

It's also possible to generate an image manipulation separately and store it wherever you want.

Assuming you've got an image named "kayaks.jpg" in (the input directory specified in the config file):

Take a look at the image API of Glide to see which parameters you can pass to the -method.

Notes

Cleaning the cache

For the moment Glide doesn't clean the cache directory, but that functionality may be coming in a future release. Until then it's your job to keep an eye on it's total size. If it becomes too big, you can opt to delete the files inside it.

Other filesystems

Currently this package only supports images stored on the local filesystem. Glide itself leverages Flysystem to read and write to various filesystems. I'd like support for that in this package let me know or feel free to submit a pull request.

Credits

License

The MIT License (MIT). Please see LICENSE for more information.


All versions of laravel-glide with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 4.2.*
league/glide Version 0.3.*
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 vis/laravel-glide contains the following files

Loading the files please wait ....