PHPackages                             socloz/knp-gaufrette-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. socloz/knp-gaufrette-bundle

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

socloz/knp-gaufrette-bundle
===========================

Allows to easily use the Gaufrette library in a Symfony project

v0.1.4(13y ago)016.4k1MITPHP

Since Nov 14Pushed 13y ago1 watchersCompare

[ Source](https://github.com/SoCloz/KnpGaufretteBundle)[ Packagist](https://packagist.org/packages/socloz/knp-gaufrette-bundle)[ Docs](http://knplabs.com)[ RSS](/packages/socloz-knp-gaufrette-bundle/feed)WikiDiscussions socloz-master Synced 4w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Gaufrette Bundle
================

[](#gaufrette-bundle)

Provides a [Gaufrette](https://github.com/KnpLabs/Gaufrette) integration for your Symfony projects.

About Gaufrette
---------------

[](#about-gaufrette)

Gaufrette is a PHP 5.3+ library providing a filesystem abstraction layer. This abstraction layer permits you to develop your applications without the need to know where all their medias will be stored and how.

Documentation is available the [official page of Gaufrette](https://github.com/KnpLabs/Gaufrette).

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

[](#installation)

Prerequisites
-------------

[](#prerequisites)

As this bundle is an integration for Symfony of the [Gaufrette](https://github.com/KnpLabs/Gaufrette) library, it requires you to first install [Gaufrette](https://github.com/KnpLabs/Gaufrette) in a Symfony project.

Download the bundle
-------------------

[](#download-the-bundle)

You can download an archive of the bundle and unpack it in the `vendor/bundles/Knp/Bundle/GaufretteBundle` directory of your application.

### Standard Edition Style

[](#standard-edition-style)

If you are using the `deps` file to manage your project's dependencies, you must add the following lines to it:

```
[gaufrette]
    git=http://github.com/KnpLabs/Gaufrette.git

[KnpGaufretteBundle]
    git=http://github.com/KnpLabs/KnpGaufretteBundle.git
    target=/bundles/Knp/Bundle/GaufretteBundle

```

### Composer Style

[](#composer-style)

Bundle can be installed using composer by add to require `composer.json` part `"knplabs/knp-gaufrette-bundle": "dev-master"` line.

### Git Submodule Style

[](#git-submodule-style)

If you are versioning your project with git, you had better to embed it as a submodule:

```
$ git submodule add https://github.com/KnpLabs/KnpGaufretteBundle.git vendor/bundles/Knp/Bundle/GaufretteBundle

```

Add the namespace in the autoloader
-----------------------------------

[](#add-the-namespace-in-the-autoloader)

You must register both Gaufrette and the KnpGaufretteBundle in your autoloader: (You do not have to do that if you are using composer autoload system.)

```
