2017 © Pedro Peláez
 

library image-cache

A Simple Image Cache Class

image

arielcr/image-cache

A Simple Image Cache Class

  • Friday, November 8, 2013
  • by arielcr
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Image Cache Class

Build Status, (*1)

Introduction

Simple class to save external images to a cache folder. It also has the ability to resize proportionally to a width., (*2)

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., (*3)

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

Usage

Usage is pretty straightforward. Simply call the function on the image src you want to cache., (*4)

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

Cached images will be on the /cache/images/ folder., (*5)

The Versions

08/11 2013

dev-master

9999999-dev https://github.com/arielcr/image-cache

A Simple Image Cache Class

  Sources   Download

MIT

The Development Requires

cache image resize