Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
msgpack.org[PHP]
PHP C
branch: master

Merge pull request #46 from darvik80/phpt_str8

This is phpt for str8 from ticket #40
latest commit 81a3165f72
@laruence laruence authored
Failed to load latest commit information.
bench import MessagePack for PHP
msgpack up
tests phpt for str8 for ticket #40
travis Add travis
.travis.yml Add travis
CREDITS Update PHP Extension
ChangeLog Fixed FR #8 (Return on unserialization)
EXPERIMENTAL import MessagePack for PHP
LICENSE Update PHP Extension
README.md Seems must be https
benchmark.php php: version 0.3.3
config.m4 php: 0.5.1
config.w32 php: added unpack of class object converter
msgpack.c Update msgpack.c。貌似缺少一个头文件引入的判断
msgpack.php Update PHP Extension
msgpack_class.c Fixed FR #8 (Return on unserialization)
msgpack_class.h php: version 0.3.3
msgpack_convert.c Fixed Bug #14 ("Invalid read" reported by valgrind)
msgpack_convert.h php: 0.5.0
msgpack_errors.h php: added unpack of class object converter
msgpack_pack.c Fixed issue #23 (Empty objects get serialized with incorrect type)
msgpack_pack.h Better fix for #12
msgpack_unpack.c 1. Improve serialize (avoding one string dup)
msgpack_unpack.h Fix Bug #16 (implicit declaration of 2 functions)
package.xml Fixed FR #8 (Return on unserialization)
php-msgpack.spec php: 0.5.0
php_msgpack.h PECL requires PHP_EXTNAME_VERSION
test_normal.php Update PHP Extension
test_streaming.php Update PHP Extension

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

Something went wrong with that request. Please try again.