RepositoryPHPNLNetherlands
rybakit

rybakit/msgpack.php

A pure PHP implementation of the MessagePack serialization format / msgpack.org[PHP]

406stars
21forks
0issues
0views

📦 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.

RepositoryC#
MessagePack-CSharp/MessagePack-CSharp

Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]

6.8k
Nov 20, 2026
RepositoryPython
msgspec/msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML

4.2k
Dec 1, 2026
RepositoryRust
3Hren/msgpack-rust

MessagePack implementation for Rust / msgpack.org[Rust]

1.4k
Dec 23, 2025
RepositoryC
ludocode/mpack

MPack - A C encoder/decoder for the MessagePack serialization format / msgpack.org[C]

640
Nov 8, 2026
RepositoryPython
remarshal-project/remarshal

Convert between CBOR, JSON, MessagePack, TOML, and YAML 1.1 & 1.2

554
Aug 1, 2026
RepositoryJavaScript
ygoe/msgpack.js

A minimal yet complete MessagePack implementation for JavaScript. msgpack.org[JavaScript]

165
May 10, 2024
RepositoryC++
ar90n/msgpack11

A tiny MessagePack library for C++11 (msgpack.org[C++11])

133
Oct 1, 2026
RepositoryC++
rwindegger/msgpack23

A modern, header-only C++ library for MessagePack serialization and deserialization. msgpack.org[c++23]

99
Sep 21, 2026
RepositoryJulia
JuliaIO/MsgPack.jl

Julia MessagePack implementation with type-driven, overloadable packing/unpacking functionality // msgpack.org[Julia]

68
Nov 22, 2026