PHP code example of jenko / flysystem-gaufrette
1. Go to this page and download the library: Download jenko/flysystem-gaufrette 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/ */
jenko / flysystem-gaufrette example snippets
use Jenko\Flysystem\GaufretteAdapter;
use Gaufrette\Adapter\Local;
$adapter = new GaufretteAdapter(
new Local(__DIR__ . '/path/to/files');
);
$filesystem = new Filesystem($adapter);
use Jenko\Flysystem\GaufretteAdapter;
use Gaufrette\Adapter\Local;
use Gaufrette\Adapter\Flysystem;
// Hadouken!
$adapter = new GaufretteAdapter(
new Flysystem(
new GaufretteAdapter(
new Flysystem(
new GaufretteAdapter(
new Flysystem(
new GaufretteAdapter(
new Local(
__DIR__ . '/path/to/files'
)
)
)
)
)
)
)
);
$filesystem = new Filesystem($adapter);