arielcr/image-cache

A Simple Image Cache Class

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/arielcr/image-cache

dev-master 2013-11-08 22:52 UTC

This package is not auto-updated.

Last update: 2025-10-21 06:58:04 UTC


README

#Image Cache Class Build Status

##Introduction Simple class to save external images to a cache folder. It also has the ability to resize proportionally to a width.

##Installation

Composer

This class is PSR-0 compliant and can be installed using composer. Simply add arielcr/image-cache to your composer.json file. Composer is the sane alternative to PEAR. It is excellent for managing dependancies in larger projects.

{
    "require": {
        "arielcr/image-cache": "dev-master"
    }
}

##Usage Usage is pretty straightforward. Simply call the function on the image src you want to cache.

<img src="<?php echo Image\Cache::get($image_url, $width); ?>"  >

Cached images will be on the /cache/images/ folder.