PHPackages                             coldwinds/torrent-rw - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. coldwinds/torrent-rw

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

coldwinds/torrent-rw
====================

Composer version of torrent-rw https://github.com/adriengibrat/torrent-rw

v1.1(9y ago)09.3k↓50%2Version 3 of the GNU GPLPHPPHP &gt;=5.2.0

Since Aug 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/coldwinds/torrent-rw)[ Packagist](https://packagist.org/packages/coldwinds/torrent-rw)[ RSS](/packages/coldwinds-torrent-rw/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (2)

```
Torrent

PHP version 5.2+

LICENSE: This source file is subject to version 3 of the GNU GPL
that is available through the world-wide-web at the following URI:
http://www.gnu.org/licenses/gpl.html.  If you did not receive a copy of
the GNU GPL License and are unable to obtain it through the web, please
send a note to adrien.gibrat@gmail.com so I can mail you a copy.

1) Features:
- Decode torrent file or data
- Build torrent from source folder/file(s)
- Silent Exception error system

2) Usage example

require_once 'Torrent.php';

// get torrent infos
$torrent = new Torrent( './test.torrent' );
echo 'private: ', $torrent->is_private() ? 'yes' : 'no',
	 'annonce: ', $torrent->announce(),
	 'name: ', $torrent->name(),
	 'comment: ', $torrent->comment(),
	 'piece_length: ', $torrent->piece_length(),
	 'size: ', $torrent->size( 2 ),
	 'hash info: ', $torrent->hash_info(),
	 'stats: ';
var_dump( $torrent->scrape() );
echo 'content: ';
var_dump( $torrent->content() );
echo 'source: ',
	 $torrent;

// get magnet link
$torrent->magnet(); // use $torrent->magnet( false ); to get non html encoded ampersand

// create torrent
$torrent = new Torrent( array( 'test.mp3', 'test.jpg' ), 'http://torrent.tracker/annonce' );
$torrent->save('test.torrent'); // save to disk

// modify torrent
$torrent->announce('http://alternate-torrent.tracker/annonce'); // add a tracker
$torrent->announce(false); // reset announce trackers
$torrent->announce(array('http://torrent.tracker/annonce', 'http://alternate-torrent.tracker/annonce')); // set tracker(s), it also works with a 'one tracker' array...
$torrent->announce(array(array('http://torrent.tracker/annonce', 'http://alternate-torrent.tracker/annonce'), 'http://another-torrent.tracker/annonce')); // set tiered trackers
$torrent->comment('hello world');
$torrent->name('test torrent');
$torrent->is_private(true);
$torrent->httpseeds('http://file-hosting.domain/path/'); // Bittornado implementation
$torrent->url_list(array('http://file-hosting.domain/path/','http://another-file-hosting.domain/path/')); //
GetRight implementation

// print errors
if ( $errors = $torrent->errors() )
	var_dump( $errors );

// send to user
$torrent->send();

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~282 days

Total

2

Last Release

3647d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5613e6c85beabef6d27e216bb5ef1b19089a78d734108510e5513ca0fef8d89?d=identicon)[coldwinds](/maintainers/coldwinds)

---

Top Contributors

[![adriengibrat](https://avatars.githubusercontent.com/u/62407?v=4)](https://github.com/adriengibrat "adriengibrat (48 commits)")[![coldwinds](https://avatars.githubusercontent.com/u/961027?v=4)](https://github.com/coldwinds "coldwinds (2 commits)")[![aberaud](https://avatars.githubusercontent.com/u/101827?v=4)](https://github.com/aberaud "aberaud (1 commits)")

---

Tags

torrentbencodebittorrenttorrent-rw

### Embed Badge

![Health badge](/badges/coldwinds-torrent-rw/health.svg)

```
[![Health](https://phpackages.com/badges/coldwinds-torrent-rw/health.svg)](https://phpackages.com/packages/coldwinds-torrent-rw)
```

###  Alternatives

[rhilip/bencode

A pure and simple PHP library for encoding and decoding Bencode data

4024.1k2](/packages/rhilip-bencode)[christeredvartsen/php-bittorrent

A set of components that can be used to interact with torrent files (read+write) and classes that can encode/decode to/from the BitTorrent format.

11120.1k2](/packages/christeredvartsen-php-bittorrent)[kleiram/transmission-php

PHP Transmission client

18416.9k1](/packages/kleiram-transmission-php)[arokettu/bencode

BitTorrent's Bencode encoder/decoder

2615.6k7](/packages/arokettu-bencode)[arokettu/torrent-file

A class to work with torrent files

2413.9k3](/packages/arokettu-torrent-file)[kubotak-is/php-del

Tool to remove code based on specific comments.

1640.8k](/packages/kubotak-is-php-del)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
