devristo/torrent
Composer 安装命令:
composer require devristo/torrent
包简介
Torrent file decoder / encoder
README 文档
README
Extract data from .torrent files and change them
Getting started
Install using composer. Add the following to your composer.json
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Devristo/torrent"
}
],
"require": {
"devristo/torrent": "dev-master"
}
}
Reading Torrent Files
use Devristo\Torrent\Torrent; $torrent = Torrent::fromFile('ubuntu-13.10-desktop-amd64.iso.torrent'); echo $torrent->getInfoHash(false) // echoes e3811b9539cacff680e418124272177c47477157
Modifying Torrent Files
$torrent->setPrivate(true); $torrent->setComment("Downloaded from example.org"); file_put_contents("private-tracker.torrent", $torrent->serialize());
统计信息
- 总下载量: 2.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 38
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2014-11-30