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
Requires
- php: >=7.3
- bavix/glow-api: ^1.0
- laravel/framework: ^7.0|^8.0
- league/flysystem: ^1.0
- nesbot/carbon: ^2.17
README
Glow Flysystem Adapter - Easy work with Glow CDN API.
- Vendor: bavix
- Package: Glow Flysystem
- 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