Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arokettu/torrent-file
PHP Torrent File Class
https://github.com/arokettu/torrent-file
bittorrent php-library torrent torrent-files
Last synced: 19 days ago
JSON representation
PHP Torrent File Class
- Host: GitHub
- URL: https://github.com/arokettu/torrent-file
- Owner: arokettu
- License: mit
- Created: 2017-03-24T02:06:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T15:12:05.000Z (3 months ago)
- Last Synced: 2024-12-10T02:11:02.504Z (28 days ago)
- Topics: bittorrent, php-library, torrent, torrent-files
- Language: PHP
- Size: 494 KB
- Stars: 20
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP Torrent File Library
[![Packagist](https://img.shields.io/packagist/v/arokettu/torrent-file.svg?style=flat-square)](https://packagist.org/packages/arokettu/torrent-file)
[![PHP](https://img.shields.io/packagist/php-v/arokettu/torrent-file.svg?style=flat-square)](https://packagist.org/packages/arokettu/torrent-file)
[![License](https://img.shields.io/packagist/l/arokettu/torrent-file.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![Gitlab pipeline status](https://img.shields.io/gitlab/pipeline/sandfox/torrent-file/master.svg?style=flat-square)](https://gitlab.com/sandfox/torrent-file/-/pipelines)
[![Codecov](https://img.shields.io/codecov/c/gl/sandfox/torrent-file?style=flat-square)](https://codecov.io/gl/sandfox/torrent-file/)A PHP Class to work with torrent files
## Installation
```bash
composer require arokettu/torrent-file
```## Usage
```php
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:
## Documentation
Read full documentation here:
Also on Read the Docs:
## Support
Please file issues on our main repo at GitLab:
Feel free to ask any questions in our room on Gitter:
Supported versions:
* 5.x (current, PHP 8.1+)
## License
The library is available as open source under the terms of the [MIT License].
[MIT License]: https://opensource.org/licenses/MIT