PHP code example of webalternatif / flysystem-dsn
1. Go to this page and download the library: Download webalternatif/flysystem-dsn 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/ */
webalternatif / flysystem-dsn example snippets
use Webf\Flysystem\Dsn\AwsS3AdapterFactory;
use Webf\Flysystem\Dsn\FlysystemAdapterFactory;
use Webf\Flysystem\Dsn\OpenStackSwiftAdapterFactory;
$factory = new FlysystemAdapterFactory([
new AwsS3AdapterFactory(),
new OpenStackSwiftAdapterFactory(),
]);
$adapter = $factory->createAdapter($dsn);