2017 © Pedro Peláez
 

library sli-fly

Flysystem Service Provider for Silex

image

wyrihaximus/sli-fly

Flysystem Service Provider for Silex

  • Saturday, January 14, 2017
  • by WyriHaximus
  • Repository
  • 4 Watchers
  • 10 Stars
  • 30,972 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 7 Versions
  • 4 % Grown

The README.md

SliFly

Flysystem service provider for Silex., (*1)

Installation

To install via Composer, use the command below, it will automatically detect the latest version and bind it with ~., (*2)

composer require wyrihaximus/sli-fly 

Usage

Adapters have to be setup as an associative array where the key defines the alias to be used later in the application. The value array contains two indexes. One adapter holding the fully namespaced adapter class name, and args for all the arguments pass into adapter., (*3)

$app->register(new WyriHaximus\SliFly\FlysystemServiceProvider(), [
    'flysystem.filesystems' => [
        'local__DIR__' => [
            'adapter' => 'League\Flysystem\Adapter\Local',
            'args' => [
                __DIR__,
            ],
            'config' => [
                // Config array passed in as second argument for the Filesystem instance
            ],
        ],
    ],
]);

Defined aliases can be accessed as demonstrated below:, (*4)

var_export($app['flysystems']['local__DIR__']->listContents());

License

Copyright 2016 Cees-Jan Kiewiet, (*5)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*6)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*7)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*8)

The Versions

14/01 2017

dev-master

9999999-dev

Flysystem Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem silex flysystem service-provider

14/01 2017

3.0.0

3.0.0.0

Flysystem Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem silex flysystem service-provider

13/10 2016

dev-var.ci

dev-var.ci

Flysystem Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem silex flysystem service-provider

23/05 2016

2.1.0

2.1.0.0

Flysystem Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem silex flysystem service-provider

06/02 2015

2.0.1

2.0.1.0

Flysystem Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem silex flysystem service-provider

05/02 2015

2.0.0

2.0.0.0

Flysystem Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem silex flysystem service-provider

23/01 2015

1.0.0

1.0.0.0

Flysystem Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem silex flysystem service-provider