Skip to main content
Ctrl+K

Sand Fox's Projects

Support

  • Gitter Room (Web)

PHP

  • Arithmetic Parser
  • Bencode
  • Clock
  • Composer License Manager
  • Composer Viz
  • Console Menu
  • Date
  • DateTime Rounding
  • Encryptor
  • IP Address
  • IP Address for Doctrine
  • IsResource
  • JSON
  • JSON5 Builder
  • KiloMega
  • Metadata Exporter for PhpStorm
  • MonsterID
  • Path Library
  • Peso for PHP
  • PGP Word List
  • Private Access
  • Pseudolocale
  • Random Extension Polyfill
  • RFC 1751
  • Torrent File
    • Loading, Saving and Creating
    • Root Fields
    • Info Fields
    • Signing
    • Versioned Info Fields
    • Helper Methods
    • Data Types
    • Upgrade Notes
    • Future Plans
  • Torrent File CLI
  • Unsigned
  • UUID

Ruby

  • CommonMarker+Rouge
  • Journald Logger
  • Journald Native
  • Vishnu

JavaScript and Frontend

  • sass-hsv

Docker

  • JSON5 to JSON

Links

  • Blog
  • Read the Docs
  • GitLab
  • GitHub
  • Codeberg
  • Gitea
  • Packagist
  • RubyGems
  • NPM
  • Docker Hub
  • .rst

Torrent File

Contents

  • Installation
  • Documentation
  • License

Torrent File#

Packagist GitLab GitHub Codeberg Gitea

A PHP Class to work with torrent files

Installation#

composer require arokettu/torrent-file

Documentation#

  • Loading, Saving and Creating
    • Load an existing torrent
    • Save torrent
    • Create a torrent for existing directory or file
  • Root Fields
    • Announce
    • Announce List
    • Comment
    • Created By
    • Creation Date
    • HTTP Seeds
    • Nodes
    • URL List
  • Info Fields
    • Info Hash
    • Metadata
    • Metadata Removal
    • Name
    • Private
    • Update Url
  • Signing
    • sign()
    • verifySignature()
    • isSigned()
    • getSignatures()
    • removeSignatures()
  • Versioned Info Fields
    • Torrent File Version 1
    • Torrent File Version 2
  • Helper Methods
    • Display Name
    • File Name
    • Magnet Link
    • Raw Data
  • Data Types
    • AnnounceList
    • Node
    • NodeList
    • UriList
    • Attributes
    • Signature
  • Upgrade Notes
    • Upgrade from 4.x to 5.0
    • Upgrade from 3.x to 4.0
    • Upgrade from 2.x to 3.0
    • Upgrade from 1.x to 2.0
  • Future Plans

License#

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

previous

RFC 1751

next

Loading, Saving and Creating

Contents
  • Installation
  • Documentation
  • License

By Anton Smirnov

© Copyright 2019, 2026.