Skip to main content
Ctrl+K

Torrent File

  • GitLab
  • GitHub
  • Codeberg
  • Gitea
  • Packagist
latest
  • Loading, Saving and Creating
  • Root Fields
  • Info Fields
  • Signing
  • Versioned Info Fields
  • Helper Methods
  • Data Types
  • Upgrade Notes
  • Future Plans
  • .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.

next

Loading, Saving and Creating

Contents
  • Installation
  • Documentation
  • License

By Anton Smirnov

© Copyright 2026.