arokettu / torrent-file
A class to work with torrent files
4.0.1
2022-12-30 02:29 UTC
Requires
- php: ^8.1
- ext-hash: *
- arokettu/bencode: ^2.8 | ^3.1 | ^4.0
- league/uri-components: ^2.0
- nikic/iter: ^2.0
- psr/event-dispatcher: ^1.0
- symfony/filesystem: ^5.4 | ^6.0
- symfony/finder: ^5.4 | ^6.0
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.0
- league/event: ^3.0
- phpunit/phpunit: ^9.5
- psy/psysh: *
- sandfox.dev/code-standard: ^10@dev
- squizlabs/php_codesniffer: *
- vimeo/psalm: ^5.2
README
A PHP Class to work with torrent files
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');
Installation
composer require arokettu/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
Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community
Supported versions:
- 2.x (bugfixes, PHP 7.4+)
- 3.x (bugfixes, PHP 8.1+)
- 4.x (current, PHP 8.1+)
License
The library is available as open source under the terms of the MIT License.