Msgpack - JSON 이나 Serialize 패키지

· 10년 전 · 1255

 

[ 사용목적 ]

JSON 이나 Serialize 을 생성하는데 

php 의 Serialize 대용으로 사용을 많이 한다고 하는군요.

 

[ 배포 ]

http://msgpack.org/ 에서 중간쯤에 보시면 언어별로 설치하는 방법이 있습니다. 

 

php 을 선택하면 

 

- 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);
?>

 

[ 소스 설치 ]

GitHub : https://github.com/msgpack/msgpack-php 

 

 

출처 : http://blog.bengis.com/

 

|
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

+
제목 글쓴이 날짜 조회
10년 전 조회 1,799
10년 전 조회 1,494
10년 전 조회 1,062
10년 전 조회 1,084
10년 전 조회 1,486
10년 전 조회 976
10년 전 조회 895
10년 전 조회 963
10년 전 조회 1,037
10년 전 조회 1,124
10년 전 조회 1,295
10년 전 조회 1,032
10년 전 조회 1,232
10년 전 조회 1,177
10년 전 조회 1,256
10년 전 조회 1,742
10년 전 조회 1,191
10년 전 조회 1,180
10년 전 조회 1,191
10년 전 조회 1,130
10년 전 조회 1,256
10년 전 조회 1,718
10년 전 조회 1,667
10년 전 조회 1,494
10년 전 조회 4,072
10년 전 조회 1,430
10년 전 조회 1,147
10년 전 조회 1,254
10년 전 조회 2,323
10년 전 조회 1,742