coldwinds/torrent-rw 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

coldwinds/torrent-rw

最新稳定版本:v1.1

Composer 安装命令:

composer require coldwinds/torrent-rw

包简介

Composer version of torrent-rw https://github.com/adriengibrat/torrent-rw

README 文档

README

Torrent PHP version 5.2+ LICENSE: This source file is subject to version 3 of the GNU GPL that is available through the world-wide-web at the following URI: http://www.gnu.org/licenses/gpl.html. If you did not receive a copy of the GNU GPL License and are unable to obtain it through the web, please send a note to adrien.gibrat@gmail.com so I can mail you a copy. 1) Features: - Decode torrent file or data - Build torrent from source folder/file(s) - Silent Exception error system 2) Usage example <code> require_once 'Torrent.php'; // get torrent infos $torrent = new Torrent( './test.torrent' ); echo '<br>private: ', $torrent->is_private() ? 'yes' : 'no', '<br>annonce: ', $torrent->announce(), '<br>name: ', $torrent->name(), '<br>comment: ', $torrent->comment(), '<br>piece_length: ', $torrent->piece_length(), '<br>size: ', $torrent->size( 2 ), '<br>hash info: ', $torrent->hash_info(), '<br>stats: '; var_dump( $torrent->scrape() ); echo '<br>content: '; var_dump( $torrent->content() ); echo '<br>source: ', $torrent; // get magnet link $torrent->magnet(); // use $torrent->magnet( false ); to get non html encoded ampersand // create torrent $torrent = new Torrent( array( 'test.mp3', 'test.jpg' ), 'http://torrent.tracker/annonce' ); $torrent->save('test.torrent'); // save to disk // modify torrent $torrent->announce('http://alternate-torrent.tracker/annonce'); // add a tracker $torrent->announce(false); // reset announce trackers $torrent->announce(array('http://torrent.tracker/annonce', 'http://alternate-torrent.tracker/annonce')); // set tracker(s), it also works with a 'one tracker' array... $torrent->announce(array(array('http://torrent.tracker/annonce', 'http://alternate-torrent.tracker/annonce'), 'http://another-torrent.tracker/annonce')); // set tiered trackers $torrent->comment('hello world'); $torrent->name('test torrent'); $torrent->is_private(true); $torrent->httpseeds('http://file-hosting.domain/path/'); // Bittornado implementation $torrent->url_list(array('http://file-hosting.domain/path/','http://another-file-hosting.domain/path/')); // GetRight implementation // print errors if ( $errors = $torrent->errors() ) var_dump( $errors ); // send to user $torrent->send(); </code>

统计信息

  • 总下载量: 9.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 105
  • 开发语言: PHP

其他信息

  • 授权协议: Version
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固