2017 © Pedro Peláez
 

library elfinder-flysystem-driver

A Flysystem Driver for elFinder

image

barryvdh/elfinder-flysystem-driver

A Flysystem Driver for elFinder

  • Monday, July 16, 2018
  • by Barryvdh
  • Repository
  • 5 Watchers
  • 98 Stars
  • 485,663 Installations
  • PHP
  • 16 Dependents
  • 3 Suggesters
  • 18 Forks
  • 18 Open issues
  • 10 Versions
  • 10 % Grown

The README.md

elFinder Flysystem Driver

This package adds a VolumeDriver for elFinder to use Flysystem as a root in your system. You need to have elFinder 2.1 installed. You can download the source or nightlies from https://github.com/Studio-42/elFinder or use the Laravel version: https://github.com/barryvdh/laravel-elfinder, (*1)

Require this package in your composer.json and update composer., (*2)

composer require barryvdh/elfinder-flysystem-driver

This will require Flysystem, but you might need additional adapters to fit your purpose. See https://github.com/thephpleague/flysystem for more information., (*3)

Basic usage

You can use the driver by setting the connector config to Flysystem., (*4)

'roots' => [
    [
        'driver' => 'Flysystem', 
        'path' => 'images',
        'URL' => '/images', 
        'filesystem' => new Filesystem(new LocalAdapter('/path/to/public_html')),
        'cache' => 'session', // 'session', 'memory' or false
    ],
    [
        'driver' => 'Flysystem',
        'URL' => 'http://mydomain.com/content',
        'alias' => 'Mydomain.com',
        'filesystem' => new Filesystem(new FtpAdapter(
                [
                    'host' => 'mydomain.com',
                    'username' => 'user',
                    'password' => '****',
                    'root' => '/domains/mydomain.com/public_html/content',
                ]
            )),
    ],
    [
        'driver' => 'Flysystem',
        'adapter' => new DropboxAdapter(new Dropbox\Client($token, $appName))
    ],
];

The path and URL options are optional. The path defaults to '/', the URL is only possible when the file is visible through an URL., (*5)

Displaying thumbnails/images through Glide

If you require Glide, you can show thumbnails for your images and generate secure urls., (*6)

[
    'driver' => 'Flysystem', 
    'filesystem' => $fs,
    'glideURL' => 'http://domain.com/glideserver',
    'glideKey' => 'your-sign-key',
],

You can still use the tmbSize and tmbCrop options from the configuration options, (*7)

This will require you to setup a basic server with Glide, see http://glide.thephpleague.com/ A signKey is optional, but can help secure your images against changing parameters., (*8)

Note: When securing image, you need to remove the _ parameter from your Request object: $request->query->remove('_'); Otherwise the signature will fail. The _ parameter is used to disable caching., (*9)

License

This elFinder driver is open-sourced software licensed under the MIT license, (*10)

The Versions

16/07 2018

dev-master

9999999-dev

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem

08/07 2017

v0.2.1

0.2.1.0

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem

05/04 2016

v0.2.0

0.2.0.0

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem

04/04 2016

v0.1.5

0.1.5.0

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem

19/02 2016

v0.1.4

0.1.4.0

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem

13/01 2016

v0.1.3

0.1.3.0

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem

16/12 2015

dev-revert-14-patch-1

dev-revert-14-patch-1

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem

14/11 2015

v0.1.2

0.1.2.0

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem

20/06 2015

v0.1.1

0.1.1.0

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem

28/01 2015

0.1.0

0.1.0.0

A Flysystem Driver for elFinder

  Sources   Download

MIT

The Requires

 

filesystem elfinder flysystem