Skip to content

Releases: s9e/Bencode

2.3.2 - Maintenance release

Choose a tag to compare

@JoshyPHP JoshyPHP released this 10 Apr 04:59
2.3.2

Minor code changes only. No functional change intended.

Full Changelog: 2.3.1...2.3.2

Improved NonCompliantDecoder

Choose a tag to compare

@JoshyPHP JoshyPHP released this 19 Oct 17:10
2.3.1

The non-compliant decoder now accepts integers as dictionary keys. This doesn't affect the regular decoder.

2.3.0

Choose a tag to compare

@JoshyPHP JoshyPHP released this 16 Oct 18:19
2.3.0

Added s9e\Bencode\BencodeSerializable interface, similar to PHP's native JsonSerializable interface.

use s9e\Bencode\Bencode;
use s9e\Bencode\BencodeSerializable;

$bencodable = new class implements BencodeSerializable
{
	public function bencodeSerialize(): array|int|string
	{
		return 42;
	}
};

print_r(Bencode::encode($bencodable));
i42e

Maintenance release

Choose a tag to compare

@JoshyPHP JoshyPHP released this 16 Oct 13:04
2.2.8

Minor optimizations were applied to the decoder.

Maintenance release

Choose a tag to compare

@JoshyPHP JoshyPHP released this 28 May 23:15
2.2.7

No functional change intended.

Full Changelog: 2.2.6...2.2.7

Maintenance release

Choose a tag to compare

@JoshyPHP JoshyPHP released this 15 May 20:09
2.2.6

No functional change intended.

Full Changelog: 2.2.5...2.2.6

Maintenance release

Choose a tag to compare

@JoshyPHP JoshyPHP released this 19 Feb 06:05
2.2.5

Removed superfluous files

Bumped requirements to PHP 8.1

Choose a tag to compare

@JoshyPHP JoshyPHP released this 22 Nov 22:37
2.2.4

No functional change intended.

Performance improvements

Choose a tag to compare

@JoshyPHP JoshyPHP released this 07 Oct 18:07
2.2.2

Decoding performance has been marginally improved.

Performance improvements

Choose a tag to compare

@JoshyPHP JoshyPHP released this 05 Oct 23:33
2.2.1

Decoding performance has been marginally improved.