bavix/glow-flysystem

This package is abandoned and no longer maintained. No replacement package was suggested.

Adapter for work with Glow CDN using flysystem

1.3.1 2020-09-09 12:03 UTC

This package is auto-updated.

Last update: 2023-11-09 18:43:02 UTC


README

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

Package Rank Latest Stable Version Latest Unstable Version License composer.lock

Glow Flysystem Adapter - Easy work with Glow CDN API.

  • Vendor: bavix
  • Package: Glow Flysystem
  • Version: Latest Stable Version
  • Laravel Version: 7.x
  • PHP Version: 7.3+
  • Composer: composer require bavix/glow-flysystem

Usage

Add disk in config config/filesystems.php.

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

Usage example.

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'));

Supported by

Supported by JetBrains