A (really easy to use) uploader for WorldWideTorrents written in PHP.
src/
tests/
vendor/
Via Composer
$ composer require pxgamer/wwt-simple-upload
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);
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email owzie123@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.