PHPackages                             scolib/php-bittorrent - 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. scolib/php-bittorrent

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

scolib/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.

v2.0.1(5y ago)05MITPHPPHP &gt;=7.2

Since Jan 4Pushed 5y agoCompare

[ Source](https://github.com/ScoLib/php-bittorrent)[ Packagist](https://packagist.org/packages/scolib/php-bittorrent)[ Docs](https://github.com/scolib/php-bittorrent)[ RSS](/packages/scolib-php-bittorrent/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (3)Versions (8)Used By (0)

PHP BitTorrent
==============

[](#php-bittorrent)

**PHP BitTorrent** is a set of components that can be used to interact with torrent files (read+write) and encode/decode to/from the [BitTorrent format](https://wiki.theory.org/index.php/BitTorrentSpecification).

[![Current Build Status](https://github.com/scolib/php-bittorrent/workflows/Build%20and%20test/badge.svg)](https://github.com/scolib/php-bittorrent/actions)

Requirements
------------

[](#requirements)

PHP BitTorrent requires PHP 7.2 or above.

Installation
------------

[](#installation)

PHP BitTorrent can be installed using [Composer](https://getcomposer.org):

```
composer require scolib/php-bittorrent ^2.0

```

Using the PHP BitTorrent API
----------------------------

[](#using-the-php-bittorrent-api)

### Encode PHP variables

[](#encode-php-variables)

```
