PHP code example of thedava / dod-lite-flysystem

1. Go to this page and download the library: Download thedava/dod-lite-flysystem 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/ */

    

thedava / dod-lite-flysystem example snippets


// Use your flysystem instance (e.g. with a LocalFilesystemAdapter)
$flysystem = new \League\Flysystem\Filesystem(
    new \League\Flysystem\Local\LocalFilesystemAdapter(
       '/path/to/your/storage'
    )
);

// Store data locally in files using your flysystem instance
$documentManager = new \DodLite\DocumentManager(
    new \DodLite\Extension\Flysystem\Adapter\FlysystemAdapter(
        $flysystem
    )
);