PHP code example of wyrihaximus / sli-fly
1. Go to this page and download the library: Download wyrihaximus/sli-fly 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/ */
wyrihaximus / sli-fly example snippets
$app->register(new WyriHaximus\SliFly\FlysystemServiceProvider(), [
'flysystem.filesystems' => [
'local__DIR__' => [
'adapter' => 'League\Flysystem\Adapter\Local',
'args' => [
__DIR__,
],
'config' => [
// Config array passed in as second argument for the Filesystem instance
],
],
],
]);
var_export($app['flysystems']['local__DIR__']->listContents());