2017 © Pedro Peláez
 

library transfersh

Easy interaction with the transfer.sh API

image

codebridge/transfersh

Easy interaction with the transfer.sh API

  • Tuesday, March 29, 2016
  • by Raz0rwire
  • Repository
  • 2 Watchers
  • 0 Stars
  • 212 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Simple transfer.sh client

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');

The Versions

29/03 2016

dev-master

9999999-dev

Easy interaction with the transfer.sh API

  Sources   Download

MIT

The Requires

 

by Kevin Hoogerwerf

api transfer.sh

29/03 2016

1.1

1.1.0.0

Easy interaction with the transfer.sh API

  Sources   Download

MIT

The Requires

 

by Kevin Hoogerwerf

api transfer.sh

03/03 2016

1.0

1.0.0.0

Easy interaction with the transfer.sh API

  Sources   Download

MIT

The Requires

 

by Kevin Hoogerwerf

api transfer.sh