Skip to content

Commit 911e289

Browse files
author
itismadness
committed
Update readme and test against PHP 7.3
1 parent dd0243a commit 911e289

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ php:
66
- '7.0'
77
- '7.1'
88
- '7.2'
9+
- '7.3'
910
- nightly
1011

1112
matrix:

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
BEncode 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

1111
Usage
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

1521
Description
1622
-----------
@@ -34,7 +40,7 @@ As such, this library will make some checks when loading data that these mandato
3440
raised. 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
3844
we 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

4450
This 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

Comments
 (0)