PHPackages                             marcandreappel/imagecache - 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. [Image &amp; Media](/categories/media)
4. /
5. marcandreappel/imagecache

ActiveLibrary[Image &amp; Media](/categories/media)

marcandreappel/imagecache
=========================

Image resizing and caching

2.3.0(7y ago)024[2 PRs](https://github.com/marcandreappel/imagecache/pulls)LGPL-3.0-or-laterPHPPHP &gt;=7.0.0

Since Aug 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/marcandreappel/imagecache)[ Packagist](https://packagist.org/packages/marcandreappel/imagecache)[ Docs](https://github.com/marcandreappel/imagecache)[ RSS](/packages/marcandreappel-imagecache/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (17)Used By (0)

ImageCache
==========

[](#imagecache)

Fast image handling and caching.

```
$imageCache = new \MarcAndreAppel\ImageCache\ImageCache('/absolute/path/to/base_folder/images');

// Create a scaled and cropped thumbnail and return the public thumbnail path
$thumbnail = $imageCache->thumbnail(50, 50)->cachedImage;
```

Methods (chainable)
-------------------

[](#methods-chainable)

### Cache path naming override

[](#cache-path-naming-override)

```
$imageCache->method('replacement')->thumbnail(50, 50)->publicPath;
```

Returns */.cache/replacement* instead of */.cache/thumbnail/50/50*.

### Cache path prefixing

[](#cache-path-prefixing)

```
$imageCache->prefix('mycache')->thumbnail(50, 50)->publicPath;
```

Adds */.cache/mycache* to the resulting path, eg: */.cache/mycache/thumbnail/50/50*.

### Allow enlarging of images

[](#allow-enlarging-of-images)

```
$imageCache->enlarge(true)->scale(1200);
```

Original size might be 400px ✕ 300px and hence becomes bigger.

### Create visible subfolders

[](#create-visible-subfolders)

```
$imageCache->hidden(false)->scale(1200);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~16 days

Recently: every ~49 days

Total

13

Last Release

2642d ago

Major Versions

1.1.2 → 2.0.02018-08-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/4620c96e07f06cc88660ac5aa15f0933df05b9900b3fda902be7371f37574c91?d=identicon)[marc-andre](/maintainers/marc-andre)

---

Top Contributors

[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (1 commits)")

---

Tags

imagecachemarcandreappel

### Embed Badge

![Health badge](/badges/marcandreappel-imagecache/health.svg)

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

###  Alternatives

[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[jenssegers/imagehash

Perceptual image hashing for PHP

2.1k2.2M5](/packages/jenssegers-imagehash)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[lasserafn/php-initial-avatar-generator

A package to generate avatars with initials for PHP

4374.2M13](/packages/lasserafn-php-initial-avatar-generator)[rtippin/messenger

Laravel messenger suite.

45035.8k4](/packages/rtippin-messenger)

PHPackages © 2026

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