pxgamer/tapi

This package is abandoned and no longer maintained. No replacement package was suggested.

A PHP class for utilising the TorrentAPI.

v1.0.6 2017-12-06 10:56 UTC

This package is auto-updated.

Last update: 2020-02-11 01:37:44 UTC


README

Latest Version on Packagist Software License Build Status Style CI Code Coverage Total Downloads

A PHP class for utilising the TorrentAPI.

Structure

src/
tests/
vendor/

Install

Via Composer

$ composer require pxgamer/tapi

Usage

Validating and signing in

$tAPI = new \pxgamer\tAPI\Client;
$tAPI->setApiAuth('api_key');

Returns: boolean

Signing out

$tAPI = new \pxgamer\tAPI\Client;
$tAPI->unsetApiAuth();

Returns: boolean

Uploading a torrent

$tAPI = new \pxgamer\tAPI\Client;
$tAPI->upload('file_path');

Returns: json

Downloading a torrent

$tAPI = new \pxgamer\tAPI\Client;
$tAPI->download('info_hash');

Returns: json | file_content

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email owzie123@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.