sandfoxme/torrent-file

A class to work with torrent files

3.1.0 2021-12-02 09:14 UTC

This package is auto-updated.

Last update: 2021-12-02 18:12:39 UTC


README

Packagist PHP License Gitlab pipeline status Codecov

A PHP Class to work with torrent files

Usage

<?php

use SandFox\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');

Installation

composer require sandfoxme/torrent-file

Features

  • Torrent file data manipulation
  • Torrent file creation

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

Supported versions:

  • 2.x (bugfixes, PHP 7.4+)
  • 3.x (current, PHP 8.1+)

License

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