PHP code example of bavix / glow-flysystem

1. Go to this page and download the library: Download bavix/glow-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/ */

    

bavix / glow-flysystem example snippets


    'disks' => [
        'glow' => [
            'driver' => 'glow',
            'bucket' => env('GLOW_BUCKET'),
            'url' => env('GLOW_URL'),
            'endpoint' => env('GLOW_ENDPOINT'),
            'token' => env('GLOW_TOKEN'),
            'visibility' => 'public',
        ],
    ],

use Illuminate\Support\Facades\Storage;

$glow = Storage::disk('glow');
$glow->put('glow.txt', 'Hello, flysystem!');
var_dump($glow->url('glow.txt')); // URL for download file
var_dump($glow->delete('glow.txt'));