Download the PHP package orpheusnet/bencode-torrent without Composer

On this page you can find all versions of the php package orpheusnet/bencode-torrent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bencode-torrent

BEncode Torrent

Test Packagist Packagist PHP Version Support

PHP library for encoding and decoding BitTorrent BEncode data, focused around usage within Gazelle.

Usage

composer require orpheusnet/bencode-torrent

See the BencodeTorrent class for more information on the available methods. Additionally, see Bencode for the underlying library to encode/decode BEncode data.

Description

BEncode is the encoding used by BitTorrent to store and transmitting loosely structured data. It supports:

You can see more information about how these types are supported at BitTorrentSpecification#Bencoding.

In addition to the above, torrent files are expected to be BEncoded dictionaries that contain minimally the keys announce (byte string) and info (dictionary). Within the info dictionary, we then expect piece length (integer) and pieces (byte string). If the torrent has only a single file, we then expect name (byte string) and length (integer), whereas for a multi-file torrent, we'll have name (byte string) and files (list) where each element is a dictionary that has the keys length (integer) and path (list of strings).

As such, this library will make some checks when loading data that these mandatory fields exist or else an Exception is raised. More information on these fields can be found at BitTorrentSpecification#Metainfo_File_Structure.

Finally, this library is primarily aimed at being used within the Gazelle so we have some utility functions within the library that make sense there to accomplish the following things:

This is based (loosely) off the code in the two separate BEncode libraries within WCD's Gazelle (bencodetorrent.class.php and torrent.class.php), but without the now unnecessary 32bit shims as well as making it a unified library used for both uploading and downloading the torrent files.


All versions of bencode-torrent with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package orpheusnet/bencode-torrent contains the following files

Loading the files please wait ....