codebridge/transfersh

Easy interaction with the transfer.sh API

Maintainers

Package info

github.com/Raz0rwire/transfersh

pkg:composer/codebridge/transfersh

Statistics

Installs: 473

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1 2016-03-29 19:30 UTC

This package is not auto-updated.

Last update: 2026-03-01 03:04:36 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');