bencode
bencode copied to clipboard
A bencode serializer for PHP
This changes the decoder to read from an interface (`Rych\Bencode\DataSource`) instead of directly from a string. `String` and `FileHandle` DataSource implementations are built in. A file can be decoded given...
small error in composer.json
https://github.com/rchouinard/bencode/blob/master/src/Decoder.php#L160 i-05e != -5 i05e != 5 Leading zeros are not allowed (although the number zero is still represented as "0"). 1) add after 140 line: ``` php if ('-'...