Download the PHP package flobbos/laravel-image-cache without Composer
On this page you can find all versions of the php package flobbos/laravel-image-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flobbos/laravel-image-cache
More information about flobbos/laravel-image-cache
Files in flobbos/laravel-image-cache
Package laravel-image-cache
Short Description Replacement for the now abandoned imagecache package by Intervention
License MIT
Informations about the package laravel-image-cache
Laravel Image Cache
Laravel Image Cache is a package that provides an easy-to-use caching mechanism for image manipulation in Laravel. It serves as a replacement for the now-abandoned imagecache package by Intervention.
Features
- Cache manipulated images for improved performance.
- Support for multiple image drivers: GD, Imagick, and Libvips.
- Define custom image manipulation templates.
- Configurable cache lifetime and output formats.
- Dynamic routing for serving cached images.
Installation
-
Install the package via Composer:
-
Publish the configuration file:
- Configure the
config/imagecache.php
file as needed.
Usage
Basic Example
To use the package, you can define templates in the configuration file and use the ImageCache
facade to generate cached images.
Dynamic Image Routes
The package provides a dynamic route for serving cached images. For example:
template
: The name of the template defined in the configuration file.path
: The relative path to the image in thepublic/images
directory.
Example URL:
Custom Templates
You can define custom templates by creating a class that implements a build
method. For example:
Then, register the template in the config/imagecache.php
file:
Configuration
The configuration file config/imagecache.php
allows you to customize:
- Cache lifetime
- Image processing driver
- Cache store
- Default output format
- Return object behavior
- Image manipulation templates
Requirements
- PHP 8.1 or higher
- Laravel 10 or higher
- Intervention Image 3.0 or higher
License
This package is open-sourced software licensed under the MIT license.
Credits
- Developed by Alexej Krzewitzki ([email protected])
- Inspired by the original imagecache package by Intervention
markdown
Laravel Image Cache
Laravel Image Cache is a package that provides an easy-to-use caching mechanism for image manipulation in Laravel. It serves as a replacement for the now-abandoned imagecache package by Intervention.
Features
- Cache manipulated images for improved performance.
- Support for multiple image drivers: GD, Imagick, and Libvips.
- Define custom image manipulation templates.
- Configurable cache lifetime and output formats.
- Dynamic routing for serving cached images.
Installation
-
Install the package via Composer:
`
-
Publish the configuration file:
- Configure the
config/imagecache.php
file as needed.
Usage
Basic Example
To use the package, you can define templates in the configuration file and use the ImageCache
facade to generate cached images.
Dynamic Image Routes
The package provides a dynamic route for serving cached images. For example:
template
: The name of the template defined in the configuration file.path
: The relative path to the image in thepublic/images
directory.
Example URL:
Custom Templates
You can define custom templates by creating a class that implements a build
method. For example:
Then, register the template in the config/imagecache.php
file:
Configuration
The configuration file config/imagecache.php
allows you to customize:
- Cache lifetime
- Image processing driver
- Cache store
- Default output format
- Return object behavior
- Image manipulation templates
Requirements
- PHP 8.1 or higher
- Laravel 10 or higher
- Intervention Image 3.0 or higher
License
This package is open-sourced software licensed under the MIT license.
Credits
- Developed by Alexej Krzewitzki ([email protected])
- Inspired by the original imagecache package by Intervention
markdown
Laravel Image Cache
Laravel Image Cache is a package that provides an easy-to-use caching mechanism for image manipulation in Laravel. It serves as a replacement for the now-abandoned imagecache package by Intervention.
Features
- Cache manipulated images for improved performance.
- Support for multiple image drivers: GD, Imagick, and Libvips.
- Define custom image manipulation templates.
- Configurable cache lifetime and output formats.
- Dynamic routing for serving cached images.
Installation
-
Install the package via Composer:
`
-
Publish the configuration file:
- Configure the
config/imagecache.php
file as needed.
Usage
Basic Example
To use the package, you can define templates in the configuration file and use the ImageCache
facade to generate cached images.
Dynamic Image Routes
The package provides a dynamic route for serving cached images. For example:
template
: The name of the template defined in the configuration file.path
: The relative path to the image in thepublic/images
directory.
Example URL:
Custom Templates
You can define custom templates by creating a class that implements a build
method. For example:
Then, register the template in the config/imagecache.php
file:
Configuration
The configuration file config/imagecache.php
allows you to customize:
- Cache lifetime
- Image processing driver
- Cache store
- Default output format
- Return object behavior
- Image manipulation templates
Requirements
- PHP 8.1 or higher
- Laravel 10 or higher
- Intervention Image 3.0 or higher
License
This package is open-sourced software licensed under the MIT license.
Credits
- Developed by Alexej Krzewitzki ([email protected])
- Inspired by the original imagecache package by Oliver Vogel
All versions of laravel-image-cache with dependencies
intervention/image Version ^3.0
illuminate/cache Version ^10.0|^11.0|^12.0