11BEncode Torrent
22===============
33
4- [ ![ Build Status] ( https://travis-ci.org/ApolloRIP /bencode-torrent.svg?branch=master )] ( https://travis-ci.org/ApolloRIP /bencode-torrent )
5- [ ![ Packagist] ( https://img.shields.io/packagist/v/apollorip /bencode-torrent.svg )] ( https://packagist.org/packages/apollorip /bencode-torrent )
6- ![ PHP from Travis config] ( https://img.shields.io/travis/php-v/ApolloRIP /bencode-torrent.svg )
4+ [[ ![ Build Status] ( https://travis-ci.org/OPSnet /bencode-torrent.svg?branch=master )] ( https://travis-ci.org/OPSnet /bencode-torrent )
5+ [ ![ Packagist] ( https://img.shields.io/packagist/v/orpheusnet /bencode-torrent.svg )] ( https://packagist.org/packages/orpheusnet /bencode-torrent )
6+ ![ PHP from Travis config] ( https://img.shields.io/travis/php-v/OPSnet /bencode-torrent.svg )
77
8- PHP library for encoding and decoding BitTorrent BEncode data, focused around
9- [ Gazelle] ( https://github.com/ApolloRIP /Gazelle ) .
8+ PHP library for encoding and decoding BitTorrent BEncode data, focused around usage within
9+ [ Gazelle] ( https://github.com/OPSnet /Gazelle ) .
1010
1111Usage
1212-----
13- ` composer require apollorip/bencode-torrent `
13+ ` composer require orpheusnet/bencode-torrent `
14+
15+ ``` php
16+ use OrpheusNET\BencodeTorrent;
17+ $bencode = new Bencode();
18+ $bencode->decodeFile('path/to/file.torrent');
19+ ```
1420
1521Description
1622-----------
@@ -34,7 +40,7 @@ As such, this library will make some checks when loading data that these mandato
3440raised. More information on these fields can be found at
3541[ BitTorrentSpecification#Metainfo_File_Structure] ( https://wiki.theory.org/index.php/BitTorrentSpecification#Metainfo_File_Structure ) .
3642
37- Finally, this library is primarily aimed at being used within the [ Gazelle] ( https://github.com/ApolloRIP /Gazelle ) so
43+ Finally, this library is primarily aimed at being used within the [ Gazelle] ( https://github.com/OPSnet /Gazelle ) so
3844we have some utility functions within the library that make sense there to accomplish the following things:
3945* Ensuring torrent files are marked as 'private'
4046* Setting a 'source' on torrents (to ensure unique info hash)
@@ -43,5 +49,5 @@ we have some utility functions within the library that make sense there to accom
4349
4450This is based (loosely) off the code in the two separate BEncode libraries within WCD's Gazelle
4551([ bencodetorrent.class.php] ( https://github.com/WhatCD/Gazelle/blob/master/classes/bencodetorrent.class.php ) and
46- [ torrent.class.php] ( https://github.com/WhatCD/Gazelle/blob/master/classes/torrent.class.php ) ), but without the
47- necessary 32bit shims as well as make it a unified library used for both uploading and downloading the torrent files.
52+ [ torrent.class.php] ( https://github.com/WhatCD/Gazelle/blob/master/classes/torrent.class.php ) ), but without the now
53+ unnecessary 32bit shims as well as making it a unified library used for both uploading and downloading the torrent files.
0 commit comments