Intervention / image-laravel by olivervogel

Laravel Integration of Intervention Image
969,531
68
1
Package Data
Maintainer Username: olivervogel
Maintainer Contact: oliver@intervention.io (Oliver Vogel)
Package Create Date: 2024-01-17
Package Last Update: 2024-11-27
Home Page: https://image.intervention.io
Language: PHP
License: MIT
Last Refreshed: 2024-12-17 03:10:41
Package Statistics
Total Downloads: 969,531
Monthly Downloads: 168,248
Daily Downloads: 7,217
Total Stars: 68
Total Watchers: 1
Total Forks: 7
Total Open Issues: 0

Intervention Image Laravel

Laravel Integration for Intervention Image

Latest Version Tests Monthly Downloads

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.

composer require intervention/image-laravel

Next, add the configuration files to your application using the vendor:publish command:

php artisan vendor:publish --provider="Intervention\Image\Laravel\ServiceProvider"

This command will publish the configuration file image.php for the image integration to your app/config directory. In this file you can set the desired driver for Intervention Image. By default the library is configured to use GD library for image processing.

Getting started

The integration is now complete and it is possible to access the ImageManager via Laravel's facade system.

use Intervention\Image\Laravel\Facades\Image;

Route::get('/', function () {
    $image = Image::read('images/example.jpg');
});

Read the official documentation of Intervention Image for more information.

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.