2017 © Pedro Peláez
 

library disky

Disky is a simple package of plugins for Laravel Flysystem. But right now it just allows copying from one disk to another.

image

roblesterjr04/disky

Disky is a simple package of plugins for Laravel Flysystem. But right now it just allows copying from one disk to another.

  • Tuesday, September 19, 2017
  • by roblesterjr04
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel Disky

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Disky gives you an easy way to copy a file from one disk to another in one line of code., (*2)

Install

Via Composer, (*3)

``` bash $ composer require roblesterjr04/disky, (*4)


Add Service Provider to `config/app.php` ``` php roblesterjr04\disky\DiskyServiceProvider::class,

Usage

``` php Storage::copyToDisk('path/to/file', 's3'); // Same as copying from disk('local');, (*5)

Storage::disk('s3')->copyToDisk('path/to/file', 'ftp');, (*6)

Storage::disk('ftp')->copyToDisk('path/to/file', 'local');, (*7)

// Use the same logic to copy a directory, (*8)

Storage::disk('ftp')->copyToDisk('path/to/directory', 's3');, (*9)


### Multiple Files are supported! ``` php 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']);

Change log

Please see CHANGELOG for more information on what has changed recently., (*10)

Testing

bash $ composer test, (*11)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*12)

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker., (*13)

Credits

License

The MIT License (MIT). Please see License File for more information., (*14)

The Versions

19/09 2017

dev-master

9999999-dev https://github.com/roblesterjr04/disky

Disky is a simple package of plugins for Laravel Flysystem. But right now it just allows copying from one disk to another.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel storage copy flysystem disk roblesterjr04 disky

19/09 2017

v0.1.1

0.1.1.0 https://github.com/roblesterjr04/disky

Disky is a simple package of plugins for Laravel Flysystem. But right now it just allows copying from one disk to another.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel storage copy flysystem disk roblesterjr04 disky

19/09 2017

v0.1

0.1.0.0 https://github.com/roblesterjr04/disky

Disky is a simple package of plugins for Laravel Flysystem. But right now it just allows copying from one disk to another.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel storage copy flysystem disk roblesterjr04 disky