2017 © Pedro Peláez
 

library gaufrette-extras

PHP5 library that provides extra components for Gaufrette

image

kphoen/gaufrette-extras

PHP5 library that provides extra components for Gaufrette

  • Sunday, May 29, 2016
  • by K-Phoen
  • Repository
  • 2 Watchers
  • 10 Stars
  • 8,832 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Gaufrette Extras Build Status

Gaufrette Extras is a PHP library providing extra features to the awesome Gaufrette., (*1)

Status

This project is DEPRECATED and should NOT be used., (*2)

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

Installation

The recommended way to install this library is through composer., (*4)

Just create a composer.json file for your project:, (*5)

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

And run these two commands to install it:, (*6)

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

Now you can add the autoloader, and you will have access to the library:, (*7)

require 'vendor/autoload.php';

Features

URL resolvers

Resolvers provide a quick and easy way to resolve filesystem entries to a URL., (*8)

$resolver = new PrefixResolver('http://www.my-website.com/uploads');
$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')); // 'http://www.my-website.com/uploads/myFile.txt'

Tests

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

php composer.phar install

Once installed, just launch the following command:, (*10)

./vendor/bin/phpunit

License

This library is released under the MIT license. See the bundled LICENSE file for details., (*11)

The Versions

29/05 2016

dev-master

9999999-dev

PHP5 library that provides extra components for Gaufrette

  Sources   Download

MIT

The Requires

 

The Development Requires

file filesystem media abstraction

29/09 2015

1.1.0

1.1.0.0

PHP5 library that provides extra components for Gaufrette

  Sources   Download

MIT

The Requires

 

The Development Requires

file filesystem media abstraction

20/04 2014

1.0.0

1.0.0.0

PHP5 library that provides extra components for Gaufrette

  Sources   Download

MIT

The Requires

 

The Development Requires

file filesystem media abstraction