Skip to content

villafinder/gaufrette-extras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gaufrette Extras

Build Status Quality Score Packagist Version Total Downloads Software License

Provides extras functionality around Gaufrette like Resolvable filesystem.

Resolvable filesystem

ResolvableFilesystem is a decorator permitting to resolve objects paths into URLs.

In order to use it, you have to pass the decorated Filesystem and a Resolver:

$client     = // AwsS3 client instantiation
$decorated  = new Filesystem(new AwsS3($client, 'my_bucket', ['directory' => 'root/dir']));
$filesystem = new ResolvableFilesystem(
    $decorated,
    new AwsS3PresignedUrlResolver($client, 'my_bucket', 'root/dir')
);

Then you can call resolve($key):

$filesystem->resolve('/foo.png'); // = 'https://...

Currently these resolvers are supported:

  • AwsS3PublicUrlResolver
  • AwsS3PresignedUrlResolver
  • StaticUrlResolver

About

Fork of gaufrette/extras - Provides extras functionalities around Gaufrette (original repo deleted)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages