PHPackages                             simettric/gaufrette-to-liip-imagine-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. [File &amp; Storage](/categories/file-storage)
4. /
5. simettric/gaufrette-to-liip-imagine-bundle

ActiveSymfony-bundle[File &amp; Storage](/categories/file-storage)

simettric/gaufrette-to-liip-imagine-bundle
==========================================

3946PHP

Since Sep 25Pushed 9y agoCompare

[ Source](https://github.com/Simettric/Gaufrette2LiipImagineBundle)[ Packagist](https://packagist.org/packages/simettric/gaufrette-to-liip-imagine-bundle)[ RSS](/packages/simettric-gaufrette-to-liip-imagine-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SimettricGaufrette2LiipImagineBundle
====================================

[](#simettricgaufrette2liipimaginebundle)

With this Bundle you can define resolvers in order to store the liip image cache files in Gaufrette filesystems.

This bundle depends on [LiipImagineBundle](https://github.com/liip/LiipImagineBundle) and [KnpGaufretteBundle](https://github.com/KnpLabs/KnpGaufretteBundle).

Installation
============

[](#installation)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require simettric/gaufrette-to-liip-imagine-bundle "dev-master"
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Configuration
=============

[](#configuration)

An example of a resolver configuration:

### Step 1: Define your gaufrette filesystem in order to store the LiipImagine cache files

[](#step-1-define-your-gaufrette-filesystem-in-order-to-store-the-liipimagine-cache-files)

You can use one of the gaufrette adapters for doing this, you can store the files in Amazon s3, Azure, Dropbox, Google Storage, even a FTP/sFTP server.

```
    # app/config/config.yml
    knp_gaufrette:
        stream_wrapper: ~
        adapters:
            cache_google:
                google_cloud_storage:
                    service_id:  'app.google_cloud_storage.service'
                    bucket_name: '%google.storage_bucket_name%'
                    options:
                        directory: %cache_dir_name%
        filesystems:
            media_cache:
                adapter:  cache_google

```

### Step 2: Define your resolver service using a gaufrette filesystem

[](#step-2-define-your-resolver-service-using-a-gaufrette-filesystem)

```
    # app/config/services.yml

    app.storage.resolver:
       class: Simettric\Gaufrette2LiipImagineBundle\Resolver\LiipGaufretteResolver

       #@gaufrette.{filesystem_name}_filesystem
       arguments: ['@gaufrette.media_cache_filesystem', '%google.storage_prefix_url%', '%cache_dir_name%']
       tags:
           - {  name: "liip_imagine.cache.resolver", resolver: "gaufrette_resolver" }

```

### Step 3: Using that resolver to store your thumbnail files

[](#step-3-using-that-resolver-to-store-your-thumbnail-files)

You can configure it in order to store the cache files in that filesystem as default

```
    # app/config/config.yml

    liip_imagine:
       filter_sets:
           cache: gaufrette_resolver

```

Or you can specify in which filter do you want to use that filesystem. This is useful in scenarios where do you want to use different filesystems to store your thumbnail images.

```
    # app/config/config.yml

    liip_imagine:
       filter_sets:
           cache: ~
           avatar:
               cache: gaufrette_resolver
               quality: 75
               filters:
                   relative_resize: { widen: 400 }

```

Filtering remote images
=======================

[](#filtering-remote-images)

You can also apply LiipImagine filters to images stored in remote urls with a simple remote data loader included in this bundle. To get it working, you need to set it in your liip\_imagine configuration

```
    # app/config/config.yml
    liip_imagine:
        data_loader: sim_gau2liip_remote_loader

    # in your twig template

```

Note: if the loader can´t find the image, it will load the general default\_image configured in the LiipImagine bundle configuration.

This loader needs more improvement, all PRs are welcomed.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2b7ed3333cafe0de5f8061d2649b02f0331f21c05b23880265a180ebbc409a3?d=identicon)[asiermarques](/maintainers/asiermarques)

---

Top Contributors

[![asiermarques](https://avatars.githubusercontent.com/u/149459?v=4)](https://github.com/asiermarques "asiermarques (16 commits)")

### Embed Badge

![Health badge](/badges/simettric-gaufrette-to-liip-imagine-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/simettric-gaufrette-to-liip-imagine-bundle/health.svg)](https://phpackages.com/packages/simettric-gaufrette-to-liip-imagine-bundle)
```

PHPackages © 2026

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