codebridge/transfersh

Easy interaction with the transfer.sh API

Installs: 473

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/codebridge/transfersh

1.1 2016-03-29 19:30 UTC

This package is not auto-updated.

Last update: 2025-09-28 00:34:46 UTC


README

Installation

composer require codebridge/transfersh

Code Example

use CodeBridge\Transfer;

$transfer_client = new Transfer();

$file_path = realpath('./whatever.ext');
$download_url = $transfer_client->send($file_path);

Multiple files

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

More complex example (for self hosted installations)

use CodeBridge\Transfer;

$transfer_client = new Transfer('http', 'yourdomain.com');

$file_path = realpath('./whatever.ext');
$download_url = $transfer_client->send($file_path, 'somecustomname.ext');