PHP code example of wyrihaximus / cli-fly

1. Go to this page and download the library: Download wyrihaximus/cli-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 / cli-fly example snippets


$app->register(new WyriHaximus\CliFly\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());