PHPackages                             lireincore/imgcache-bundle - 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. lireincore/imgcache-bundle

ActiveSymfony-bundle[Caching](/categories/caching)

lireincore/imgcache-bundle
==========================

The lireincore/imgcache integration for the Symfony framework

0.4.0(6y ago)022MITPHPCI failing

Since Aug 21Pushed 6y agoCompare

[ Source](https://github.com/lireincore/LireinCoreImgCacheBundle)[ Packagist](https://packagist.org/packages/lireincore/imgcache-bundle)[ Docs](https://github.com/lireincore/LireinCoreImgCacheBundle)[ RSS](/packages/lireincore-imgcache-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (8)Used By (0)

Image effect, thumb and cache bundle for Symfony
================================================

[](#image-effect-thumb-and-cache-bundle-for-symfony)

[![Build Status](https://camo.githubusercontent.com/c328f0fca246ce7365b5ded8512cf99f339aa1a7c1b71671a5fcb917a6fed54c/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c697265696e636f72652f4c697265696e436f7265496d67436163686542756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/lireincore/LireinCoreImgCacheBundle)[![Latest Stable Version](https://camo.githubusercontent.com/bd7e5691180ff6826c62599b7dad59e8102fc6940f11e6e8e22198dca55716d8/68747470733a2f2f706f7365722e707567782e6f72672f6c697265696e636f72652f696d6763616368652d62756e646c652f762f737461626c65)](https://packagist.org/packages/lireincore/imgcache-bundle)[![Total Downloads](https://camo.githubusercontent.com/c4ef19faf3bfe36295ad234a7f6ea4365f2e9f53d19f66820a0b274c76a18832/68747470733a2f2f706f7365722e707567782e6f72672f6c697265696e636f72652f696d6763616368652d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/lireincore/imgcache-bundle)[![License](https://camo.githubusercontent.com/0d65c931906cfc234f3e758e5ec7f49c044db85ee744ecd8a47e92877bfbbde5/68747470733a2f2f706f7365722e707567782e6f72672f6c697265696e636f72652f696d6763616368652d62756e646c652f6c6963656e7365)](https://packagist.org/packages/lireincore/imgcache-bundle)

About
-----

[](#about)

The [lireincore/imgcache](https://github.com/lireincore/imgcache) integration for Symfony framework.

Install
-------

[](#install)

Add the `"lireincore/imgcache-bundle": "^0.4"` package to your `require` section in the `composer.json` file

or

```
$ php composer.phar require lireincore/imgcache-bundle
```

Usage
-----

[](#usage)

To use this bundle, you need to create the `lireincore_imgcache.yaml` file in your `config/packages` folder and paste this boilerplate:

```
# config/packages/lireincore_imgcache.yaml

lireincore_imgcache:
    srcdir: '%kernel.project_dir%/files'
    destdir: '%kernel.project_dir%/public/thumbs'
    webdir: '%kernel.project_dir%/public'
    presets:
        origin:
            effects:
                - { type: 'resize', params: { width: '50%', height: 100 } }
                - 'grayscale'
```

Add listener class and configure for event handling when thumb created (required `symfony/event-dispatcher: ^4.3` or another psr-14 compatible dispatcher):

```
# config/services.yaml

services:
    Psr\EventDispatcher\EventDispatcherInterface: '@event_dispatcher'
    App\Event\ThumbCreatedListener:
        tags:
            - { name: kernel.event_listener, event: LireinCore\ImgCache\Event\ThumbCreatedEvent, method: onThumbCreated }
```

See `lireincore/imgcache` [README.md](https://github.com/lireincore/imgcache/blob/master/README.md) for more information about the available effects and other config options.

Use in your code:

```
$imgcache = $this->container->get('lireincore_imgcache.service.imgcache');
// get thumb url for image '{srcdir}/blog/image.jpg' (preset 'origin')
$url = $imgcache->url('blog/image.jpg', 'origin');
```

See `lireincore/imgcache` [README.md](https://github.com/lireincore/imgcache/blob/master/README.md) for more information about the available functions.

License
-------

[](#license)

This project is licensed under the MIT License - see the [License File](LICENSE) file for details

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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 ~74 days

Recently: every ~59 days

Total

7

Last Release

2376d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21308223?v=4)[lireincore](/maintainers/lireincore)[@lireincore](https://github.com/lireincore)

---

Top Contributors

[![lireincore](https://avatars.githubusercontent.com/u/21308223?v=4)](https://github.com/lireincore "lireincore (9 commits)")

---

Tags

bundlecacheeffectimagephppostprocessorpresetresizesymfonythumbthumbnailsymfonybundleimageresizecachethumbpreseteffect

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lireincore-imgcache-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/lireincore-imgcache-bundle/health.svg)](https://phpackages.com/packages/lireincore-imgcache-bundle)
```

###  Alternatives

[tedivm/stash-bundle

Incorporates the Stash caching library into Symfony.

841.4M16](/packages/tedivm-stash-bundle)[sensiolabs/gotenberg-bundle

A Symfony bundle that provides seamless integration with Gotenberg for generating PDFs and screenshots from various sources (HTML, Markdown, Office documents, URLs) with a clean, builder-based API.

210210.4k2](/packages/sensiolabs-gotenberg-bundle)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[cmsig/seal-symfony-bundle

An integration of CMS-IG SEAL search abstraction into Symfony Framework.

15195.8k5](/packages/cmsig-seal-symfony-bundle)

PHPackages © 2026

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