Download the PHP package danhunsaker/laravel-flysystem-service without Composer
On this page you can find all versions of the php package danhunsaker/laravel-flysystem-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danhunsaker/laravel-flysystem-service
More information about danhunsaker/laravel-flysystem-service
Files in danhunsaker/laravel-flysystem-service
Package laravel-flysystem-service
Short Description Automatically registers every Flysystem adapter it recognizes as a Laravel Filesystem Driver.
License MIT
Informations about the package laravel-flysystem-service
Laravel Flysystem Service
Registers recognized Flysystem adapters with Laravel automatically.
This lets you use other adapters without having to write your own service providers to load them properly. It automatically detects which adapters are available, and registers only the ones actually installed.
Note: This package only recognizes the adapters officially supported by The PHP League - for other adapters, install danhunsaker/laravel-flysystem-others instead (it will pull in this package as a dependency).
Installation
The usual methods for using Composer apply here:
composer require danhunsaker/laravel-flysystem-service
You do still have to register one service, but only one, and at least you don't
have to write it. Be sure to REPLACE the
Illuminate\Filesystem\FilesystemServiceProvider::class
line with the new one:
Setup
You can get example definitions for all supported filesystem drivers by
publishing the replacement filesystems
config - just run the following Artisan
command:
php artisan vendor:publish --provider=Danhunsaker\\Laravel\\Flysystem\\FlysystemServiceProvider --force
The --force
flag is required to overwrite the existing filesystems
config
that ships with Laravel. You can also rename the existing file, then run the
command without the --force
flag, if you'd like to preserve the existing
contents for transfer to the new file.
Contributions
Pull requests, bug reports, and so forth are all welcome on GitHub.
Security issues should be reported directly to hennikhunsaker (plus) laraflyserv (at) gmail (dot) com.
And head to GitHub for everything else.
All versions of laravel-flysystem-service with dependencies
illuminate/filesystem Version >= 9.0
league/flysystem Version ^3.0