pxgamer/wwt-simple-upload

一个用PHP编写的、真正易用的WorldWideTorrents上传器。

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

This package is auto-updated.

Last update: 2024-09-11 14:08:31 UTC


README

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

一个用PHP编写的、真正易用的WorldWideTorrents上传器。

结构

src/
tests/
vendor/

安装

通过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);

变更日志

有关最近更改的更多信息,请参阅CHANGELOG

测试

$ composer test

贡献

有关详细信息,请参阅CONTRIBUTINGCODE_OF_CONDUCT

安全性

如果您发现任何与安全相关的问题,请通过owzie123@gmail.com发送电子邮件,而不是使用问题跟踪器。

致谢

许可协议

MIT许可协议(MIT)。有关更多信息,请参阅许可文件