Narwhal Twistor Flysystem HTTP Adapter Provider
Narwal Twistor Flysystem HTTP adapter is to add laraval and lumen support for the adapter., (*1)
Installation
composer require narwahl/twistor-flysystem-http
Usage Lumen 5.4
Add this to your bootstrap/app.php, (*2)
$app->register(Narwhal\Twistor\Flysystem\TwistorFlysystemHttpProvider::class);
Options and context can be added inside config/filesystem.php, (*3)
'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, (*4)
$content = Storage::disk('http')->get('test.csv');
Laraval 5.4
coming...., (*5)