PHPackages                             msgpack/msgpack-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. msgpack/msgpack-php

ActivePhp-ext[Parsing &amp; Serialization](/categories/parsing)

msgpack/msgpack-php
===================

MessagePack serialization API

785230118[17 issues](https://github.com/msgpack/msgpack-php/issues)[1 PRs](https://github.com/msgpack/msgpack-php/pulls)PHPCI passing

Since Aug 26Pushed 8mo ago62 watchersCompare

[ Source](https://github.com/msgpack/msgpack-php)[ Packagist](https://packagist.org/packages/msgpack/msgpack-php)[ RSS](/packages/msgpack-msgpack-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)DependenciesVersions (1)Used By (0)

Msgpack for PHP
===============

[](#msgpack-for-php)

[![Build Status](https://github.com/msgpack/msgpack-php/workflows/ci/badge.svg?branch=master)](https://github.com/msgpack/msgpack-php/actions?query=workflow%3Aci+branch%3Amaster)

This extension provides an API for communicating with MessagePack serialization.

MessagePack is a binary-based efficient object serialization library. It enables to exchange structured objects between many languages just like JSON. But unlike JSON, it is very fast and small.

Requirement
-----------

[](#requirement)

- PHP 7.0 +

Install
-------

[](#install)

### Install from PECL

[](#install-from-pecl)

Msgpack is a PECL extension, thus you can simply install it by:

```
pecl install msgpack
```

### Compile Msgpack from source

[](#compile-msgpack-from-source)

```
/path/to/phpize
./configure --with-php-config=/path/to/php-config
make && make install
```

### Example

[](#example)

```
