Netherlandsrybakit/msgpack.php
A pure PHP implementation of the MessagePack serialization format / msgpack.org[PHP]
📦 Pure PHP MessagePack with streaming unpacking
Pack and unpack data efficiently, all in pure PHP.
msgpack.php is a pure PHP implementation of the MessagePack binary serialization format. It provides pack/unpack functionality, supports streaming, handles 64‑bit integers, and allows custom types. The library is fully tested and aims to be fast while remaining dependency‑free.
✨ Highlights
- Full MessagePack compliance: Implements the latest specification completely.
- Streaming unpacking: Unpack data incrementally from a stream without loading everything into memory.
- 64‑bit integer support: Correctly handles unsigned 64‑bit integers.
- Custom type serialization: Supports application‑specific types via type objects and transformers.
- Fine‑grained packing options: Bitmask options let you force string/binary, array/map, and float precision.
- Relatively fast performance: Optimized for speed while staying pure PHP.
💡 Why it matters
Unlike libraries that depend on C extensions, msgpack.php works entirely in pure PHP, making it easy to install and use on any 64‑bit PHP environment without compilation. Its streaming unpacking capability is especially useful for processing large or continuous data streams, reducing memory usage. The support for custom types and fine‑tuned packing options gives developers control over how their data is serialized, which is valuable for interoperability with other systems.
#MessagePack #PHP #Serialization #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]
A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
MPack - A C encoder/decoder for the MessagePack serialization format / msgpack.org[C]
Convert between CBOR, JSON, MessagePack, TOML, and YAML 1.1 & 1.2
A minimal yet complete MessagePack implementation for JavaScript. msgpack.org[JavaScript]
A modern, header-only C++ library for MessagePack serialization and deserialization. msgpack.org[c++23]
Julia MessagePack implementation with type-driven, overloadable packing/unpacking functionality // msgpack.org[Julia]