2017 © Pedro Peláez
 

library laravel-flysystem-others

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

image

danhunsaker/laravel-flysystem-others

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  • Monday, July 4, 2016
  • by danhunsaker
  • Repository
  • 1 Watchers
  • 5 Stars
  • 554 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 13 Versions
  • 6 % Grown

The README.md

Laravel Flysystem Others

Software License Gitter Liberapay receiving, (*1)

Latest Stable Version Latest Unstable Version Build Status Codecov Total Downloads, (*2)

Registers recognized third-party Flysystem adapters with Laravel automatically., (*3)

This lets you use third-party 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. It also detects whether the Eventable version of Flysystem is available, and if so, it switches to it, letting you listen in on Flysystem events and affect them accordingly., (*4)

NOTE: While this package only recognizes adapters NOT officially supported by [The PHP League][], it does depend on danhunsaker/laravel-flysystem-service, so installing this package will let you use them as well., (*5)

Installation

The usual methods for using Composer apply here:, (*6)

composer require danhunsaker/laravel-flysystem-others

This package uses Laravel's auto-discovery feature for the service provider, but if you're using a Laravel version before 5.5, 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:, (*7)

// In config/app.php

    'providers' => [
        // ...
        Danhunsaker\Laravel\Flysystem\FlysystemOtherServiceProvider::class,
        // ...
    ],

And since FlysystemOtherServiceProvider extends FlysystemServiceProvider from danhunsaker/laravel-flysystem-service, you don't need to add it as well. In fact, doing so will probably cause some issues with your app, as both providers will attempt to handle the PHP League drivers at the same time., (*8)

Of course, you'll want to read through its README as well, to see what options it supports that this package piggy-backs on, such as those for the cache decorator., (*9)

Setup

For added flexibility, such as the ability to open ZIP files on remote storage, you can also install twistor/flysystem-stream-wrapper, which will register each of the drives in your config/filesystems.php file as a stream protocol (though only when each is accessed the first time, unless you add them to the autowrap parameter in the configuration). In the example of accessing remote ZIP files, you would then simply need to prefix the ZIP file's path with the name of the drive it's available on, as a URL scheme (something like dropbox://path/to/file.zip)., (*10)

Finally, as with danhunsaker/laravel-flysystem-service, you can get example definitions for all supported filesystem drivers by publishing the replacement filesystems config - just run the following Artisan command:, (*11)

php artisan vendor:publish --provider=Danhunsaker\\Laravel\\Flysystem\\FlysystemOtherServiceProvider --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., (*12)

Supported Adapters

The best place to check for which adapters are supported by this package is the Composer suggestions, but here's a quick (not-guaranteed-up-to-date) list as well:, (*13)

NOTE: If you install more than one of the adapters listed above for the same storage service, only the first one – in alphabetical order by namespace – will be used, unless otherwise noted above., (*39)

Contributions

Pull requests, bug reports, and so forth are all welcome on GitHub., (*40)

Security issues should be reported directly to danhunsaker (plus) laraflyplus (at) gmail (dot) com., (*41)

And head to GitHub for everything else., (*42)

The Versions

04/07 2016

dev-master

9999999-dev

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

laravel flysystem

04/07 2016

v1.3.2

1.3.2.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

laravel flysystem

02/07 2016

v1.3.1

1.3.1.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

laravel flysystem

20/05 2016

v1.3.0.1

1.3.0.1

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

laravel flysystem

20/05 2016

v1.2.3

1.2.3.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

laravel flysystem

19/05 2016

v1.2.2

1.2.2.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

14/05 2016

v1.2.1

1.2.1.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

25/10 2015

v1.2.0

1.2.0.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

25/10 2015

v1.1.1

1.1.1.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

24/10 2015

v1.1.0

1.1.0.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

24/10 2015

v1.0.2

1.0.2.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

23/10 2015

v1.0.1

1.0.1.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker

23/10 2015

v1.0.0

1.0.0.0

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

  Sources   Download

MIT

The Requires

 

by Daniel Hunsaker