Flysystem file adapter for FileWaiter.
Via Composer
$ composer require stadly/file-waiter-flysystem
use Stadly\FileWaiter\Adapter\Flysystem;
use Stadly\FileWaiter\File;
use Stadly\FileWaiter\Waiter;
$flysystem = new \League\Flysystem\Filesystem($adapter); // Any Flysystem adapter.
$filePath = '/path/to/file/in/flysystem';
$streamFactory = new \GuzzleHttp\Psr7\HttpFactory(); // Any PSR-17 compatible stream factory.
$file = new File(new Flysystem($flysystem, $filePath, $streamFactory));
$responseFactory = new \GuzzleHttp\Psr7\HttpFactory(); // Any PSR-17 compatible response factory.
$waiter = new Waiter($file, $responseFactory);
// Serve the file stored in Flysystem using FileWaiter.
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email magnar@myrtveit.com instead of using the issue tracker.
The MIT License (MIT). Please see LICENSE for more information.