Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

SmartestEdu/FlysystemPublicUrlPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flysystem Public Url Plugin

This is a Flysystem Plugin that adds the ability to get the public url for a file on a filesystem.

Currently supported Adapters:

Badges

SensioLabsInsight

Circle CI

Installation

Using composer:

composer require smartest-edu/flysystem-public-url-plugin

Enabling

app/config/config.yml

oneup_flysystem:
    filesystems:
        default:
            adapter: yourAwss3v2Adapter
            plugins:
                - smartestedu.flysystem.public_url_plugin

services:
    smartestedu.flysystem.public_url_plugin:
        class: SmartestEdu\FlysystemPublicUrlPlugin\AwsUrlPlugin

Useage

$publicUrl = $filesystem->getPublicUrl($filename)