Download the PHP package muvon/kiss-binary-codec without Composer
On this page you can find all versions of the php package muvon/kiss-binary-codec. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package kiss-binary-codec
php-kiss-binary-codec
Binary codec for encoding multiple structures with predefined config
It works only with array as input cuz created for complex structure and detect best encoding option for data and return mostly optimized data for hashes and ints with big arrays
Encoder flow
Encoder uses pack to encode and unpack to decode with special modifications and extra addons.
Binary contains of data
- 1 byte protocol version
- 4 bytes size of meta
- x bytes meta data with pack info and keys encoded with gzip
- x bytes encoded binary data
Sample of usage
Unique features
The coded uses automatic detection data and encode is with best way.
- Hex strings (transaction hash for example)
- Big numeric as string converted to binary without losing precision
- Big float as string converted to binary without losing precision
- Hash map extracts all keys and converted as plain
- Int size determined by input value and it uses smaller one
Test coverage
- [x] String encode
- [x] Bool encode
- [x] Integer encode
- [x] Float encode
- [x] Hex encode
- [x] Int list encode
- [x] Hex list encode
- [x] Null encode
- [x] Int as string encode
- [x] Float as string encode
- [x] Ipv 4 encode
- [x] List encode
- [x] Map encode
All versions of kiss-binary-codec with dependencies
PHP Build Version
Package Version
Requires
muvon/kiss-varint Version
^0.2.0
The package muvon/kiss-binary-codec contains the following files
Loading the files please wait ....