narwhal / twistor-flysystem-http
Laravel/Lumen Service provider for Twistor Flysystem Http adapter
dev-master
2017-02-23 10:36 UTC
Requires
- twistor/flysystem-http: ^0.2.0
This package is not auto-updated.
Last update: 2025-02-01 22:19:20 UTC
README
Narwal Twistor Flysystem HTTP adapter is to add laraval and lumen support for the adapter.
Installation
composer require narwahl/twistor-flysystem-http
Usage Lumen 5.4
Add this to your bootstrap/app.php
$app->register(Narwhal\Twistor\Flysystem\TwistorFlysystemHttpProvider::class);
Options and context can be added inside config/filesystem.php
'http' => [ 'driver' => 'http', 'baseurl' => 'https://example.com/', 'supportsHead' => false, 'context' => [ 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, ], ] ]
To download a file just use this Lumen provider
$content = Storage::disk('http')->get('test.csv');
Laraval 5.4
coming....