PHP Bencode Encoder/Decoder
Bencode is the encoding used by the peer-to-peer file sharing system BitTorrent for storing and transmitting loosely structured data.
This is a pure PHP library that allows you to encode and decode Bencode data.
composer require 'arokettu/bencode'
The library is available as open source under the terms of the MIT License.