2017 © Pedro Peláez
 

library torrent-file

A class to work with torrent files

image

sandfoxme/torrent-file

A class to work with torrent files

  • Saturday, January 20, 2018
  • by sandfox.me
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP Torrent File Library

Packagist PHP License Gitlab pipeline status Codecov, (*1)

A PHP Class to work with torrent files, (*2)

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, (*3)

Documentation

Read full documentation here: https://sandfox.dev/php/torrent-file.html, (*4)

Also on Read the Docs: https://torrent-file.readthedocs.io/, (*5)

Support

Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/torrent-file/-/issues, (*6)

Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community, (*7)

Supported versions:, (*8)

  • 5.x (current, PHP 8.1+)

License

The library is available as open source under the terms of the MIT License., (*9)

The Versions

20/01 2018

dev-master

9999999-dev

A class to work with torrent files

  Sources   Download

MIT

The Requires

 

The Development Requires

torrent bittorrent torrent-file

06/11 2017

0.1.1

0.1.1.0

A class to work with torrent files

  Sources   Download

MIT

The Requires

 

The Development Requires

torrent bittorrent torrent-file

30/03 2017

0.1.0

0.1.0.0

A class to work with torrent files

  Sources   Download

MIT

The Requires

 

The Development Requires

torrent bittorrent torrent-file