Download the PHP package oddity-agency/laravel-filesystem-adapter without Composer
On this page you can find all versions of the php package oddity-agency/laravel-filesystem-adapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oddity-agency/laravel-filesystem-adapter
More information about oddity-agency/laravel-filesystem-adapter
Files in oddity-agency/laravel-filesystem-adapter
Package laravel-filesystem-adapter
Short Description filesystem for laravel
License
Informations about the package laravel-filesystem-adapter
Filesystem for Laravel
Services for Laravel 5.x for storage manipulation, it currently supports: local, s3, azure.
Installation
Add to require block in your projects composer.json:
"oddity-agency/laravel-filesystem-adapter": "dev-master"
Configuration
For Laravel 5.3 and before version you will need to register
Filesystem\FileStorageServiceProvider::class
to providers array in config/app.php
For Laravel 5.4 and after
package:discover
will automatically discover ServiceProvider from package
Set config in filesystems.php
Then create controller which constructor will accept
Filesystem\Interfaces\FileSystemInterface
who is already binded in FileSystemServiceProvider and will return instance of storage service.
Methods
All of this method are implemented in S3StorageService, AzureStorageService, LocalStorageService
Will return file or download it if download param is set to true in request params.
Note: If is set GET['path'] files will be uploaded in taht path (folder), not in root of storage.
All versions of laravel-filesystem-adapter with dependencies
aws/aws-sdk-php-laravel Version ~3.0
microsoft/azure-storage-file Version ^1.0
symfony/http-foundation Version ~4.0
league/flysystem-azure-blob-storage Version ^0.1.4