codeurs/imagehelper

This package is abandoned and no longer maintained. No replacement package was suggested.

A wrapper around the popular Intervention Image php library, for common image manipulations extended with caching.

0.0.1 2017-08-28 09:44 UTC

This package is not auto-updated.

Last update: 2022-12-24 19:08:13 UTC


README

A wrapper around the popular Intervention Image library for common image manipulations extended with caching.

Getting started

  • composer require codeurs/imagehelper

Code Examples

use Codeurs\ImageHelper;

// Set the cache folder location
ImageHelper::setCacheFolder('cache/images');

// Resize an image and return the cached file location
$src = ImageHelper::fromPath('assets/image.png')
  ->resize(320, 240)
  ->src();