No description or website provided.
PHP C
Pull request Compare This branch is 185 commits behind msgpack:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bench
msgpack
tests
CREDITS
ChangeLog
EXPERIMENTAL
LICENSE
README.md
benchmark.php
config.m4
config.w32
msgpack.c
msgpack.php
msgpack_class.c
msgpack_class.h
msgpack_convert.c
msgpack_convert.h
msgpack_errors.h
msgpack_pack.c
msgpack_pack.h
msgpack_unpack.c
msgpack_unpack.h
package.xml
php-msgpack.spec
php_msgpack.h
test_normal.php
test_streaming.php

README.md

Msgpack for PHP

This extension provide API for communicating with MessagePack serialization.

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

Requirement

  • PHP 5.0 +

Install

Install from PECL

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

pecl install msgpack

Compile Msgpack from source

$/path/to/phpize
$./configure 
$make && make install

Example

<?php
$data = array(0=>1,1=>2,2=>3);
$msg = msgpack_pack($data);
$data = msgpack_unpack($msg);
?>

Resources