msgpack.org[PHP]
Clone or download
laruence Merge pull request #117 from yatsukhnenko/master
Add return value to php_msgpack_unserialize.
Latest commit 943d272 Oct 26, 2017
Permalink
Failed to load latest commit information.
bench import MessagePack for PHP Apr 4, 2010
msgpack 66f1e04 broke ZTS builds, add TSRMLS_FETCH call before querying use_s… Jul 28, 2015
tests use spl_autoload_register (to avoid deprecation warning with 7.2) Apr 14, 2017
travis Add travis Mar 18, 2013
.travis.yml Add PHP 7.1 to the Travis CI matrix Dec 7, 2016
CREDITS Update PHP Extension Jul 17, 2010
ChangeLog Fixed FR #8 (Return on unserialization) Feb 19, 2013
EXPERIMENTAL import MessagePack for PHP Apr 4, 2010
LICENSE Update PHP Extension Jul 17, 2010
README.md Seems must be https Mar 18, 2013
benchmark.php php: version 0.3.3 Dec 27, 2010
config.m4 Remove old check Jun 12, 2015
config.w32 Compile as shared on snapshot build Jun 22, 2015
msgpack.c Add return value to php_msgpack_unserialize. Mar 31, 2017
msgpack.php Update PHP Extension Jul 17, 2010
msgpack_class.c Use new ZSTR_* macros Jul 2, 2015
msgpack_class.h php: version 0.3.3 Dec 27, 2010
msgpack_convert.c Fixed issue #95 (Compatibility with PHP 7.1) Jul 26, 2016
msgpack_convert.h Start working on porting this to PHP7(not finish yet) Jun 9, 2015
msgpack_errors.h Start working on porting this to PHP7(not finish yet) Jun 9, 2015
msgpack_pack.c Check hash protection flag to avoid memory corruption Feb 29, 2016
msgpack_pack.h Start working on porting this to PHP7(not finish yet) Jun 9, 2015
msgpack_unpack.c match type of var_entries.used_slots Dec 7, 2016
msgpack_unpack.h Use own definition of msgpack_unserialize_data_t as PHP 7.1 changes i… Dec 7, 2016
package.xml prepare for 2.0.2 Dec 7, 2016
php-msgpack.spec Preparing for 0.5.6 Apr 27, 2015
php_msgpack.h Add return value to php_msgpack_unserialize. Mar 31, 2017
test_normal.php Update PHP Extension Jul 17, 2010
test_streaming.php Update PHP Extension Jul 17, 2010

README.md

Msgpack for PHP

Build Status

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