Download the PHP package intervention/image-laravel without Composer
On this page you can find all versions of the php package intervention/image-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download intervention/image-laravel
More information about intervention/image-laravel
Files in intervention/image-laravel
Package image-laravel
Short Description Laravel Integration of Intervention Image
License MIT
Homepage https://image.intervention.io/
Informations about the package image-laravel
Intervention Image Laravel
Laravel Integration for Intervention Image
This package provides an integration to setup Intervention Image easily to your Laravel application. Included are a Laravel service provider, facade and a publishable configuration file.
Requirements
- Laravel >= 8
Installation
In your existing Laravel application you can install this package using Composer.
Features
Although Intervention Image can be used with Laravel without this extension, this intergration package includes the following features that make image interaction with the framework much easier.
Application-wide configuration
The extension comes with a global configuration file that is recognized by Laravel. It is therefore possible to store the settings for Intervention Image once centrally and not have to define them individually each time you call the image manager.
The configuration file can be copied to the application with the following command.
This command will publish the configuration file config/image.php
. Here you
can set the desired driver and its configuration options for Intervention
Image. By default the library is configured to use GD library for image
processing.
The configuration files looks like this.
You can read more about the different options for driver selection, setting options for auto orientation, decoding animations and blending color.
Static Facade Interface
This package also integrates access to Intervention Image's central entry
point, the ImageManager::class
, via a static facade. The call provides access to the
centrally configured image manager via singleton pattern.
The following code example shows how to read an image from an upload request the image facade in a Laravel route and save it on disk with a random file name.
Image Response Macro
Furthermore, the package includes a response macro that can be used to elegantly encode an image resource and convert it to an HTTP response in a single step.
The following code example shows how to read an image from disk apply modifications and use the image response macro to encode it and send the image back to the user in one call. Only the first parameter is required.
You can read more about intervention image in general in the official documentation of Intervention Image.
Authors
This library is developed and maintained by Oliver Vogel
Thanks to the community of contributors who have helped to improve this project.
License
Intervention Image Laravel is licensed under the MIT License.
All versions of image-laravel with dependencies
illuminate/support Version ^8|^9|^10|^11|^12
intervention/image Version ^3.11