richan-fongdasen / laravel-glide
1.1.0
2024-03-13 11:57 UTC
Requires
- php: ^8.0.6
- laravel/framework: ^9.0|^10.0|^11.0
- league/glide: ^2.2
- nesbot/carbon: ^2.16|^3.0
Requires (Dev)
- ekino/phpstan-banned-code: ^1.0
- fakerphp/faker: ^1.19
- larastan/larastan: ^2.0
- mockery/mockery: ^1.5
- orchestra/testbench: ^7.0|^8.0|^9.0
- phpmd/phpmd: ^2.12
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-strict-rules: ^1.2
- phpunit/phpunit: ^9.5|^10.0|^11.0
README
A simple way to enable Glide in your Laravel Application.
Synopsis
Glide is a wonderfully easy on-demand image manipulation library written in PHP. Its straightforward API is exposed via HTTP, similar to cloud image processing services like Imgix and Cloudinary. You can find out more about Glide in the official documentation.
Table of contents
Setup
Install the package via Composer :
$ composer require richan-fongdasen/laravel-glide
Configuration
You can publish the package configuration using this php artisan
command
$ php artisan vendor:publish --provider="RichanFongdasen\Glide\GlideServiceProvider"
The artisan command above should make you a copy of package configuration located in config/glide.php
return [ 'asset_url_prefix' => '/assets', 'default_headers' => [ 'Cache-Control' => 'max-age=31536000, public', ], 'default_image_format' => 'webp', 'disks' => [ 'cache' => env('GLIDE_CACHE_DISK', 'local'), 'source' => env('GLIDE_SOURCE_DISK', 'public'), ], 'driver' => env('GLIDE_DRIVER', 'imagick'), 'max_image_size' => 2048*2048, 'server' => true, 'server_hostname' => env('GLIDE_SERVER_HOSTNAME', 'localhost:8000'), 'sign_key' => env('GLIDE_SIGN_KEY'), 'url_scheme' => env('GLIDE_URL_SCHEME', 'http'), ];
Usage
This section is currently under construction.
License
The MIT License (MIT). Please see License File for more information.