PHP code example of ntzrbtr / flysystem-http
1. Go to this page and download the library: Download ntzrbtr/flysystem-http library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ntzrbtr / flysystem-http example snippets
$adapterFromUrl = \Netzarbeiter\FlysystemHttp\HttpAdapterPsr::fromUrl('http://example.com');
$client = new \GuzzleHttp\Client(['base_uri' => 'http://example.com']);
$adapterFromClient = new Netzarbeiter\FlysystemHttp\HttpAdapterPsr($client);
$adapter = new \Netzarbeiter\FlysystemHttp\HttpAdapterStream('http://example.com');