Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.
/ glow-flysystem Public archive

FlySystem adapter for working with Glow CDN

License

Notifications You must be signed in to change notification settings

bavix/glow-flysystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glow Flysystem Adapter

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