pxgamer/wwt-simple-upload

A (really easy to use) uploader for WorldWideTorrents written in PHP.

v1.1.2 2017-12-06 10:59 UTC

This package is auto-updated.

Last update: 2024-10-11 14:17:51 UTC


README

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

A (really easy to use) uploader for WorldWideTorrents written in PHP.

Structure

src/
tests/
vendor/

Install

Via Composer

$ composer require pxgamer/wwt-simple-upload

Usage

use pxgamer\WorldWideTorrents\Uploader;

$apiKey = getenv('WWT_API_KEY');

$content = [
    'name'         => '',               // The uploaded torrent's title
    'torrent_file' => 'C:\a.torrent',   // The full path to the torrent file
    'category_id'  => 39,               // The category ID
];

$data = Uploader::upload($apiKey, $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.