定制 arokettu/torrent-file 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

arokettu/torrent-file

最新稳定版本:5.3.4

Composer 安装命令:

composer require arokettu/torrent-file

包简介

A class to work with torrent files

README 文档

README

Packagist PHP License Gitlab pipeline status Codecov

A PHP Class to work with torrent files

Installation

composer require arokettu/torrent-file

Usage

<?php use Arokettu\Torrent\TorrentFile; // open file $torrent = TorrentFile::load('debian.torrent'); // create for path (file or directory) $torrent = TorrentFile::fromPath('/home/user/dists/debian'); // manipulate fields $torrent->setAnnounce('http://tracker.example:1234'); // list files foreach ($torrent->v1()->getFiles() as $file) { echo implode('/', $file->path()) , ': ' , $file->length, PHP_EOL; }

Features

  • Torrent file data manipulation
  • Torrent file creation
  • Torrent file listing
  • Support for torrent files version 1, version 2, Hybrid v1+v2, a lot of BEPs like Nodes, Url Lists, etc
  • Torrent file signing

CLI tool

A CLI tool based on the library: https://sandfox.dev/php/torrent-file-cli.html

Documentation

Read full documentation here: https://sandfox.dev/php/torrent-file.html

Also on Read the Docs: https://torrent-file.readthedocs.io/

Support

Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/torrent-file/-/issues

Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community

Supported versions:

  • 5.x (current, PHP 8.1+)

License

The library is available as open source under the terms of the MIT License.

统计信息

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

GitHub 信息

  • Stars: 22
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固