This is a Flysystem Plugin that adds the ability to get the public url for a file on a filesystem.
Currently supported Adapters:
Using composer:
composer require smartest-edu/flysystem-public-url-plugin
Symfony2 via OneupFlysystemBundle
oneup_flysystem:
filesystems:
default:
adapter: yourAwss3v2Adapter
plugins:
- smartestedu.flysystem.public_url_plugin
services:
smartestedu.flysystem.public_url_plugin:
class: SmartestEdu\FlysystemPublicUrlPlugin\AwsUrlPlugin
$publicUrl = $filesystem->getPublicUrl($filename)