filippo-toso / remote
A simple way to copy/move files between different Laravel Storage disks
v1.2.2
2023-01-23 14:22 UTC
Requires
- php: ^5.6 || ^7.0 || ^8.0 || ^9.0 || ^10.0
- illuminate/filesystem: 5.* || 6.* || 7.* || 8.* || 9.* || 10.*
- league/flysystem: ~1.0 || ^2.0 || ^3.0
README
A simple way to copy files between different Laravel Storage disks
Requirements
- PHP 5.6+
- Laravel 5.0+
Installing
Use Composer to install it:
composer require filippo-toso/remote
Using It
use FilippoToso\Remote\Remote;
// Copy from S3 to local
Remote::copy('s3://folder/file.dat', 'local:://another/folder/output.dot');
// Move from local to S3
Remote::move('local://folder/file.dat', 's3:://another/folder/output.dot');