2017 © Pedro Peláez
 

library flysystem-provider

A league/container v2 service provider for Flysystem.

image

laasti/flysystem-provider

A league/container v2 service provider for Flysystem.

  • Thursday, April 21, 2016
  • by nebulousGirl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 210 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

Laasti/flysystem-provider

Installation

composer require laasti/flysystem-provider

Usage


$container = new League\Container\Container; $container->addServiceProvider('Laasti\FlysystemProvider\FlysystemProvider'); //The first defined adapter is used as the default for League\Flysystem\FilesystemInterface $container->add('config.flysystem', [ //the first item in array is the adapter class, the second is the adapter's constructor parameters 'upload' => ['League\Flysystem\Adapter\Local', ['your-uploads-directory']], 'temp' => ['League\Flysystem\Adapter\Local', ['your-temp-directory']], //see League/Flysystem's documentation for more adapters ]); $manager = $container->get('League\Flysystem\MountManager'); $manager->read('upload://path-to-file.txt); //or get the default filesystem $filesystem = $container->get('League\Flysystem\FilesystemInterface'); //or get a filesystem by its name from the container $tempFiles = $container->get('flysystem.filesystem.temp'); //or an adapter $tempAdapter = $container->get('flysystem.adapter.temp');

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

See Github's releases or tags, (*1)

Credits

Author: Sonia Marquette (@nebulousGirl), (*2)

License

Released under the MIT License. See LICENSE.txt file., (*3)

The Versions

21/04 2016

dev-master

9999999-dev

A league/container v2 service provider for Flysystem.

  Sources   Download

MIT

The Requires

 

21/04 2016

v2.0.1

2.0.1.0

A league/container v2 service provider for Flysystem.

  Sources   Download

MIT

The Requires

 

21/02 2016

v2.0

2.0.0.0

A league/container v2 service provider for Flysystem.

  Sources   Download

MIT

The Requires

 

29/08 2015

dev-v1.0-dev

dev-v1.0-dev

A league/container service provider for Flysystem.

  Sources   Download

MIT

The Requires

 

29/08 2015

v1.0

1.0.0.0

A league/container service provider for Flysystem.

  Sources   Download

MIT

The Requires