Disky is a simple package of plugins for Laravel Flysystem. But right now it just allows copying from one disk to another.
roblesterjr04/disky is a Laravel package for disky is a simple package of plugins for laravel flysystem. but right now it just allows copying from one disk to another..
It currently has 0 GitHub stars and 18 downloads on Packagist (latest version v0.1.1).
Install it with composer require roblesterjr04/disky.
Discover more Laravel packages by roblesterjr04
or browse all Laravel packages to compare alternatives.
Last updated
Disky gives you an easy way to copy a file from one disk to another in one line of code.
Via Composer
$ composer require roblesterjr04/disky
Add Service Provider to config/app.php
roblesterjr04\disky\DiskyServiceProvider::class,
Storage::copyToDisk('path/to/file', 's3'); // Same as copying from disk('local');
Storage::disk('s3')->copyToDisk('path/to/file', 'ftp');
Storage::disk('ftp')->copyToDisk('path/to/file', 'local');
// Use the same logic to copy a directory
Storage::disk('ftp')->copyToDisk('path/to/directory', 's3');
Storage::copyToDisk(['path/to/file1','path/to/file2'], 's3');
// You can copy to multiple disks!
Storage::copyToDisk(['path/to/file1','path/to/file2'], ['s3','ftp']);
// You can specify one or more folder destinations on the destination drive(s)
Storage::copyToDisk('path/to/file', 's3', 'destination/path');
Storage::copyToDisk('path/to/file', 'ftp', ['destination/path1', 'destination/path2']);
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email :author_email instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.