PHP code example of engineor / bsb-flysystem-runabove

1. Go to this page and download the library: Download engineor/bsb-flysystem-runabove 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/ */

    

engineor / bsb-flysystem-runabove example snippets


return [
    'modules' => [
        ...
        'BsbFlysystem',
        'Engineor\\Flysystem', // ADD THIS LINE
        'Application',
        ...
    ],
    'module_listener_options' => [
        'module_paths' => [
            './module',
            './vendor',
        ],
        'config_glob_paths' => [
            'config/autoload/{,*.}{global,local}.php',
        ],
    ],
];



use Engineor\Flysystem\Runabove;

return [
    'bsb_flysystem' => [
        'adapters' => [
            'runabove'     => [
                'type'    => 'runabove',
                'options' => [
                    'username'  => ':username',
                    'password'  => ':password',
                    'tenantId'  => ':tenantId',
                    'container' => 'flysystem',
                    'region'    => Runabove::REGION_EUROPE, // optional
                    'identity_endpoint' => Runabove::IDENTITY_ENDPOINT, // optional
                ],
            ],
        ],
        'filesystems' => [
        'default' => [
            'adapter' => 'runabove',
            'plugins' => [
                'League\Flysystem\Plugin\ListFiles',
            ],
        ],
    ],
];