PHPackages                             nielse63/phpimagecache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. nielse63/phpimagecache

ActiveLibrary[Caching](/categories/caching)

nielse63/phpimagecache
======================

Image Cache is a very simple PHP module that accepts an image source and will compress and cache the file, move it to a new directory, and return the cache source for the image.

1.0.0(11y ago)44713.3k104[9 issues](https://github.com/nielse63/php-image-cache/issues)[2 PRs](https://github.com/nielse63/php-image-cache/pulls)Creative Commons AttributionPHPPHP &gt;=5.3.0

Since Sep 30Pushed 1y ago45 watchersCompare

[ Source](https://github.com/nielse63/php-image-cache)[ Packagist](https://packagist.org/packages/nielse63/phpimagecache)[ Docs](http://nielse63.github.io/php-image-cache)[ RSS](/packages/nielse63-phpimagecache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

NO LONGER MAINTAINED!!!
=======================

[](#no-longer-maintained)

Image Cache v. 1.0.0
====================

[](#image-cache-v-100)

Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.

Current Status
--------------

[](#current-status)

[![Build Status](https://camo.githubusercontent.com/0bbd9beb0b295bfb1876e7169e1dc061de6a9862192e3e02690a4629b367ea74/68747470733a2f2f7472617669732d63692e6f72672f6e69656c736536332f7068702d696d6167652d63616368652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/nielse63/php-image-cache)

Employing [travis-ci.org](http://travis-ci.org) for continuous integration testing and assurance of code validity.

Installation
------------

[](#installation)

Install [Composer](http://getcomposer.org) by opening Terminal and navigating to the directory in which you'd like to install Image Cache.

Download Composer:

```
curl -sS https://getcomposer.org/installer | php
```

Create a `composer.json` file:

```
	{
		"require" : {
			"nielse63/phpimagecache": "dev-master"
		}
	}
```

Navigate to your project root and run the `install` command.

```
$ php composer.phar install
```

From there, include the `vendor/autoload.php` file in your project, and initialize the class as normal.

More information on installing and using Composer can be found at [getcomposer.org](http://getcomposer.org), and dependency information on the package can be found at [packagist.org](https://packagist.org/packages/nielse63/phpimagecache).

Testing
-------

[](#testing)

### Manual Testing

[](#manual-testing)

To test the script manually by receiving visual output, setup a virtual host and load `demo/index.php` in your browser. Three examples are set in that file: the original image called from an outside source; a cached example referencing the outside source via an absolute URL; and an internal source referencing a file path.

Using Chrome Developer Tools you can see the difference in load times between the external source (non-cached image) and the internally stored and cached image.

### Unit Testing

[](#unit-testing)

Some extremely basic unit tests are included with the script and can be run using [PHP Unit](http://phpunit.de/). I'm working on continuing to build up these tests and would more than welcome any contributions to the tests.

To execute the tests in a bundled script (along with rebuilding the docs), clone the repository, navigate to the root of the repo in terminal, and execute:

```
$: sh build
```

Assuming you have the `phpunit` and `phpdoc` commands intalled, the tests will pass and docs will be rebuilt.

What's Next
-----------

[](#whats-next)

[See the source](https://github.com/nielse63/php-image-cache/blob/master/src/ImageCache/ImageCache.php) for a full to do list of changes that I wish to accomplish moving forward.

Contributing
------------

[](#contributing)

Contributing to the project would be a massive help in maintaining and extending the script. The module is being used on a larger scale than I initially imagined, and continuing to maintain it is becoming a little time consuming for just me.

If you're interested in contributing, [issue a pull request](https://github.com/nielse63/php-image-cache/pulls) on Github or email me directly at [](mailto:erik@312development.com).

For any issues found or extensions you'd like to see, feel free to [submit an issue ticket](https://github.com/nielse63/php-image-cache/issues) so we can start a discussion about the viability of the problem and how it can be resolved.

License
-------

[](#license)

Creative Commons Attribution Lisence:

[](http://freedomdefined.org/Licenses/CC-BY)

[![Bitdeli Badge](https://camo.githubusercontent.com/8ef68fd5d9c03690c87c9ac8f5bd7fb193b021c9bd655a38ca64035bb72d6296/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6e69656c736536332f7068702d696d6167652d63616368652f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4249d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a748a43f42940b263ed9af63c0e982eb1e50432c45f799e0bb2a2ce333a4256?d=identicon)[nielse63](/maintainers/nielse63)

---

Top Contributors

[![nielse63](https://avatars.githubusercontent.com/u/654631?v=4)](https://github.com/nielse63 "nielse63 (8 commits)")[![solleer](https://avatars.githubusercontent.com/u/16144751?v=4)](https://github.com/solleer "solleer (7 commits)")[![williamcarril-trendi](https://avatars.githubusercontent.com/u/12663311?v=4)](https://github.com/williamcarril-trendi "williamcarril-trendi (5 commits)")[![neemzy](https://avatars.githubusercontent.com/u/1804389?v=4)](https://github.com/neemzy "neemzy (3 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![mhor](https://avatars.githubusercontent.com/u/4103719?v=4)](https://github.com/mhor "mhor (1 commits)")[![alegueleres](https://avatars.githubusercontent.com/u/9197817?v=4)](https://github.com/alegueleres "alegueleres (1 commits)")[![tjefford](https://avatars.githubusercontent.com/u/2631747?v=4)](https://github.com/tjefford "tjefford (1 commits)")[![4selected](https://avatars.githubusercontent.com/u/3035711?v=4)](https://github.com/4selected "4selected (1 commits)")[![salkhwlani](https://avatars.githubusercontent.com/u/10876587?v=4)](https://github.com/salkhwlani "salkhwlani (1 commits)")

---

Tags

cachecachingimage cachephp cache

### Embed Badge

![Health badge](/badges/nielse63-phpimagecache/health.svg)

```
[![Health](https://phpackages.com/badges/nielse63-phpimagecache/health.svg)](https://phpackages.com/packages/nielse63-phpimagecache)
```

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[spatie/blink

Cache that expires in the blink of an eye

1685.0M8](/packages/spatie-blink)[gregwar/cache

A lightweight file-system cache system

1084.5M22](/packages/gregwar-cache)[putyourlightson/craft-blitz

Intelligent static page caching for creating lightning-fast sites.

153471.5k29](/packages/putyourlightson-craft-blitz)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
