PHPackages                             kphoen/gaufrette-extras-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. kphoen/gaufrette-extras-bundle

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

kphoen/gaufrette-extras-bundle
==============================

Integrates the gaufrette-extras library into Symfony

1.0.0(12y ago)34.2k1MITPHP

Since Apr 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/K-Phoen/gaufrette-extras-bundle)[ Packagist](https://packagist.org/packages/kphoen/gaufrette-extras-bundle)[ RSS](/packages/kphoen-gaufrette-extras-bundle/feed)WikiDiscussions master Synced 4w ago

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

GaufretteExtrasBundle
=====================

[](#gaufretteextrasbundle)

**GaufretteExrasBundle** is a Symfony2 bundle integrating the [Gaufrette Extras](https://github.com/K-Phoen/gaufrette-extras) library.

Status
======

[](#status)

This project is **DEPRECATED** and should NOT be used.

If someone magically appears and wants to maintain this project, I'll gladly give access to this repository.

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

[](#installation)

The recommended way to install this library is through composer.

Just create a `composer.json` file for your project:

```
{
    "require": {
        "kphoen/gaufrette-extras-bundle": "~1.0"
    }
}
```

And run these two commands to install it:

```
$ wget http://getcomposer.org/composer.phar
$ php composer.phar install
```

Register the `KPhoenGaufretteExtrasBundle`:

```
# app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new KPhoen\GaufretteExtrasBundle\KPhoenGaufretteExtrasBundle(),
    );
}
```

Features
========

[](#features)

URL resolvers
-------------

[](#url-resolvers)

Resolvers provide a quick and easy way to resolve filesystem entries to a URL. See [GaufretteExtras](https://github.com/K-Phoen/gaufrette-extras).

A Twig extension is also provided, allowing the following things in templates:

```

```

Here is the associated configuration:

```
# gaufrette bundle
knp_gaufrette:
    adapters:
        thumbs_adapter:
            local:
                directory:  %kernel.root_dir%/../web/thumbs
                create:     true

    filesystems:
        thumbs:
            adapter:        thumbs_adapter

# gaufrette extras
k_phoen_gaufrette_extras:
    resolvers:
        thumbs:                 # the filesystem name
            prefix:             # the resolver to use
                path: /thumbs   # and its configuration
```

Image form type
---------------

[](#image-form-type)

ImageType to show the previously uploaded image.

Utilisation sample:

```
