aftabnaveed / narwhal-twistor-flysystem by aftabnaveed

Laravel/Lumen Service provider for Twistor Flysystem Http adapter
21
0
2
Package Data
Maintainer Username: aftabnaveed
Maintainer Contact: aftabnaveed@gmail.com (Aftab Naveed)
Package Create Date: 2017-02-23
Package Last Update: 2017-02-23
Language: PHP
License: MIT
Last Refreshed: 2025-02-12 15:04:00
Package Statistics
Total Downloads: 21
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Narwhal Twistor Flysystem HTTP Adapter Provider

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....