Search by

crazyxman / hessian-parser

crazyxman

A client library for the Hessian binary data parse.

Package info

github.com/crazyxman/hessian-parser

Homepage

pkg:composer/crazyxman/hessian-parser

Statistics

Installs: 7 156

Dependents: 2

Suggesters: 0

Stars: 8

Open Issues: 1

v1.0.0 2019-08-26 05:27 UTC

This package is auto-updated.

Last update: 2026-09-14 23:18:24 UTC


README

Hessian format data parse

Add feature

add multi value parse. The following is the splicing of two serialized data together.The original function will stop when it resolves to the first stage.
E.g: avatar
This is the original data after base64_encode:

$str = "2rsCFAAAAAAAAAAAAAAA95RDMCRjb20ua2FpeXVhbi5wMnAuY29tbW9uLnJlc3VsdC5SZXN1bHSZEWZhdWx0ZWRQcm9wZXJ0aWVzC2Vycm9yQ29kZXMxCmVycm9yQ29kZXMKcmVzdWx0Q29kZQhlbnRpdGllcwVpdGVtcwtyZXN1bHRQYXJ0cwxpc1N1Y2Nlc3NmdWwGc3RhdHVzYHAUamF2YS51dGlsLkxpbmtlZExpc3RwkHCQTk5xE2phdmEudXRpbC5BcnJheUxpc3QwJDliZTUxNjE0LTJmNDktNDZhNS05N2M1LWJlZmVlZTZjYjNhZkhaVMjISAVkdWJibwUyLjAuMlo="
$str = base64_decode($str);
$dp = new DubboParser();
$data = $ps->getData($str);

Usage

$decoder = new Decoder;
$decoder->feed($data);
return $decoder->finalize();