PHP5 library that provides extra components for Gaufrette

Installs: 4 991

Dependents: 1

Stars: 10

Watchers: 2

Forks: 1

Open Issues: 0

1.1.0 2015-09-29 17:57 UTC


Gaufrette Exras is a PHP library providing extra features to the awesome Gaufrette.


The recommended way to install this library is through composer.

Just create a composer.json file for your project:

    "require": {
        "kphoen/gaufrette-extras": "~1.0"

And run these two commands to install it:

$ wget
$ php composer.phar install

Now you can add the autoloader, and you will have access to the library:

require 'vendor/autoload.php';


URL resolvers

Resolvers provide a quick and easy way to resolve filesystem entries to a URL.

$resolver = new PrefixResolver('');
$adapter = new ResolvableAdapter(new LocalAdapter('/tmp'), $resolver);
$filesystem = new ResolvableFilesystem($adapter);

$filesystem->write('myFile.txt', 'Hello I am the new content');

var_dump($filesystem->resolve('myFile.txt')); // ''


To run unit tests, you'll need cURL and a set of dependencies you can install using Composer:

php composer.phar install

Once installed, just launch the following command:



This library is released under the MIT license. See the bundled LICENSE file for details.