2017 © Pedro Peláez
 

library worldwidetorrents-php

An easy to use wrapper for the WorldWideTorrents API written in PHP.

image

pxgamer/worldwidetorrents-php

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  • Wednesday, December 6, 2017
  • by PXgamer
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

worldwidetorrents-php

Latest Version on Packagist ![Software License][ico-license] Build Status Style CI ![Code Coverage][ico-code-quality] Total Downloads, (*1)

An easy to use wrapper for the WorldWideTorrents API written in PHP., (*2)

Structure

src/
tests/
vendor/

Install

Via Composer, (*3)

``` bash $ composer require pxgamer/worldwidetorrents-php, (*4)


## Usage ```php $client = new Client(); // Use the specific classes as their short names use \pxgamer\WorldWideTorrents; // Create a new Client instance $client = new WorldWideTorrents\Client(); $client->setAuthKey('API_KEY'); // Initialise a new instance of each class $group = new WorldWideTorrents\Group($client); $mail = new WorldWideTorrents\Mail($client); $torrent = new WorldWideTorrents\Torrent($client); $user = new WorldWideTorrents\User($client); $account = new WorldWideTorrents\Account($client);

Methods

Client Class

/**
 * This is required to be initialised first.
 * It must be passed into all other classes.
 */
use \pxgamer\WorldWideTorrents\Client;
$client = new Client;
$client->setAuthKey('API_KEY');

Group Class

use \pxgamer\WorldWideTorrents\Group;
$group = new Group($client);

Getting a Group's information, (*5)

$group->getInfo(3);

Getting a Group's torrents, (*6)

$group->getTorrents(3);

Mail Class

Initialise the Mail class, (*7)

use \pxgamer\WorldWideTorrents\Mail;
$mail = new Mail($client);

Getting a user's mail stats, (*8)

$mail->getStats(656);

Torrent Class

Initialise the Torrent class, (*9)

use \pxgamer\WorldWideTorrents\Torrent;
$torrent = new Torrent($client);

Getting a torrent's information, (*10)

$torrent->getInfo(656);

User Class

Initialise the User class, (*11)

use \pxgamer\WorldWideTorrents\User;
$user = new User($client);

Getting a user's information, (*12)

$user->getInfo(656);

Getting a user's torrents, (*13)

$user->getTorrents(656);

Account Class

Initialise the Account class, (*14)

// Requires the API key to be set in the Client class
use \pxgamer\WorldWideTorrents\Account;
$account = new Account($client);

Upload a torrent, (*15)

$account->upload('torrent_title', '@C:\torrents\t.torrent', 39);

Change log

Please see CHANGELOG for more information on what has changed recently., (*16)

Testing

bash $ composer test, (*17)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*18)

Security

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

Credits

License

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

The Versions

06/12 2017

dev-develop

dev-develop

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php ^7.1

 

The Development Requires

06/12 2017

dev-master

9999999-dev

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php ^7.1

 

The Development Requires

by Avatar PXgamer

06/12 2017

v1.2.2

1.2.2.0

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  Sources   Download

MIT

The Requires

  • php ^7.1
  • ext-curl *

 

The Development Requires

20/11 2017

v1.2.1

1.2.1.0

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  Sources   Download

MIT

The Requires

  • php ^7.1
  • ext-curl *

 

The Development Requires

08/11 2017

v1.2.0

1.2.0.0

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  Sources   Download

MIT

The Requires

  • php ^7.1
  • ext-curl *

 

The Development Requires

02/11 2017

v1.1.0

1.1.0.0

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-curl *

 

The Development Requires

02/09 2017

v1.0.2

1.0.2.0 https://github.com/PXgamer/worldwidetorrents-php

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-curl *

 

by Avatar PXgamer

04/01 2017

v1.0.1

1.0.1.0 https://github.com/PXgamer/worldwidetorrents-php

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-curl *

 

by Avatar PXgamer

03/01 2017

v1.0.0

1.0.0.0 https://github.com/PXgamer/worldwidetorrents-php

An easy to use wrapper for the WorldWideTorrents API written in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-curl *

 

by Avatar PXgamer