composer require codebridge/transfersh
use CodeBridge\Transfer;
$transfer_client = new Transfer();
$file_path = realpath('./whatever.ext');
$download_url = $transfer_client->send($file_path);
use CodeBridge\Transfer;
$transfer_client = new Transfer();
$file_paths = ['./whatever.ext','./whatever2.ext'];
$download_url = $transfer_client->send($file_paths,'custom_zip_name'); //Returns custom_zip_name.zip
use CodeBridge\Transfer;
$transfer_client = new Transfer('http', 'yourdomain.com');
$file_path = realpath('./whatever.ext');
$download_url = $transfer_client->send($file_path, 'somecustomname.ext');