2017 © Pedro Peláez
 

library putio

PHP 5.4 wrapper for PutIO's OAuth API (v2)

image

nicoswd/putio

PHP 5.4 wrapper for PutIO's OAuth API (v2)

  • Friday, April 1, 2016
  • by nicoSWD
  • Repository
  • 1 Watchers
  • 15 Stars
  • 195 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 1 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

Put.io OAuth API Wrapper for PHP 5.4

Latest Stable Version Build Status Code Coverage Scrutinizer Code Quality, (*1)

Put.io Logo, (*2)

This is a powerful PHP library for put.io's OAuth2 API. It supports all features that put.io's API provides natively, including file uploads, downloads, transfers, friends, etc... No dependencies required., (*3)

Take a look at the Wiki and put.io's API documentation to get started., (*4)

Find me on Twitter: @nicoSWD, (*5)

Take a look at the experimental branch for PHP 7 with strict type hints and return types, (*6)

Install

Via Composer, (*7)

``` bash $ composer require "nicoswd/putio": "0.3.*", (*8)


Via git ``` bash $ git clone git@github.com:nicoSWD/put.io-api-v2.git

Usage

$putio = new PutIO\API($accessToken);

// Retrieve a an array of files on your account.
$files = $putio->files->listall();

// Upload a file.
$file = 'path/to/file.jpg';
$putio->files->upload($file);

// Download a file.
$fileID = 1234;
$saveAs = 'my-file.jpg';
$putio->files->download($fileID, $saveAs);

// Search for files you have access to.
$query = 'my file';
$files = $putio->files->search($query);

// Add a new transfer (file or torrent)
$url = 'http://torrent.site.com/legal_video.torrent';
$putio->transfers->add($url);

// Get status of a transfer
$transferID = 1234;
$info = $putio->transfers->info($transferID);

// And a lot more...

Security

If you discover any security related issues, please email security@nic0.me instead of using the issue tracker., (*9)

Testing

bash $ phpunit, (*10)

Contributing

Pull requests are very welcome! If they include tests, even better. This project follows PSR-2 coding standards, please make sure your pull requestst do too., (*11)

License

License, (*12)

The Versions

01/04 2016

dev-master

9999999-dev https://github.com/nicoSWD/put.io-api-v2

PHP 5.4 wrapper for PutIO's OAuth API (v2)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

api cloud storage torrent bittorrent putio put.io

29/03 2015

dev-php7

dev-php7 https://github.com/nicoSWD/put.io-api-v2

PHP 5.4 wrapper for PutIO's OAuth API (v2)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

api cloud storage torrent bittorrent putio put.io

19/02 2015

0.3.x-dev

0.3.9999999.9999999-dev https://github.com/nicoSWD/put.io-api-v2

PHP 5.4 wrapper for PutIO's OAuth API (v2)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

api cloud storage torrent bittorrent putio put.io

19/02 2015

0.3.1

0.3.1.0 https://github.com/nicoSWD/put.io-api-v2

PHP 5.4 wrapper for PutIO's OAuth API (v2)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

api cloud storage torrent bittorrent putio put.io

14/02 2015

0.3.0

0.3.0.0 https://github.com/nicoSWD/put.io-api-v2

PHP 5.4 wrapper for PutIO's OAuth API (v2)

  Sources   Download

MIT

The Requires

  • php >=5.4

 

api cloud storage torrent bittorrent putio put.io