PHPackages                             zanphp/hessian-lite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zanphp/hessian-lite

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zanphp/hessian-lite
===================

hessian lite

113PHP

Since Sep 5Pushed 8y ago7 watchersCompare

[ Source](https://github.com/zanphp/hessian-lite)[ Packagist](https://packagist.org/packages/zanphp/hessian-lite)[ RSS](/packages/zanphp-hessian-lite/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

hessian-lite
============

[](#hessian-lite)

从hessian官方package删除大量无关的RPC代码，精简出来的序列化与反序列化的库;

BUGFIX
------

[](#bugfix)

1. 移植 `https://github.com/cytle/HessianPHP` 修复的BUG
2. 修复Writer::writeArray中区分数组为list与map，遇到 \["key"=&gt;"value"\] 判断成 list 的问题
3. 修复Parser::untypedMap、Parser::typedMap反序列化java.util.Map&lt;Object, Object&gt;时, php数组key不能为对象的问题
4. 屏蔽引用功能: ReferenceMap::getReference 永远返回false, method(\[1,2\], \[1,2\]) 会被序列化成引用, 因为 \[1,2\] === \[1,2\], 实际上不一定是引用
5. 修改buffer实现

### BUG4 detail

[](#bug4-detail)

```

String testWrapperClassArray(Boolean[] tBooleans, Byte[] tBytes ,
    Character[] tChars, Short[] tShorts, Integer[] tInts, Long[] tLongs, Float[] tFloats, Double[] tDoubles);

$args = [
    new JavaValue("java.lang.Boolean[]", [true, false]),
    new JavaValue("java.lang.Byte[]", [1,2]),
    new JavaValue("java.lang.Character[]", ['a', 'b']),
    new JavaValue("java.lang.Short[]", [1,2]),
    new JavaValue("java.lang.Integer[]", [1,2]),
    new JavaValue("java.lang.Long[]", [1,2]),
    new JavaValue("java.lang.Float[]", [3.14,3.14]),
    new JavaValue("java.lang.Double[]", [3.14,3.14]),
];

java.lang.Long[]
java.lang.Integer[]
java.lang.Short[]
官方默认的实现都会引用到 java.lang.Byte[]

```

Feature
-------

[](#feature)

1. Writer::writeMap 中会将有\_\_type key的数组强制转换为对象,使用对象序列化

```
        if (isset($map["__type"])) {
            return $this->writeObject((object)$map);
        }
```

TODO
----

[](#todo)

1. buffer 修改成 swoole\_buffer 实现, 如有必要

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/57d7c0b1fed51b52222e9ad68b1f197c738149e3a78e69dedba2ced0c6a9c060?d=identicon)[zanphp](/maintainers/zanphp)

---

Top Contributors

[![goghcrow](https://avatars.githubusercontent.com/u/6487418?v=4)](https://github.com/goghcrow "goghcrow (8 commits)")

### Embed Badge

![Health badge](/badges/zanphp-hessian-lite/health.svg)

```
[![Health](https://phpackages.com/badges/zanphp-hessian-lite/health.svg)](https://phpackages.com/packages/zanphp-hessian-lite)
```

###  Alternatives

[zxing/qr-reader

PHP qr code reader library

7345.5k1](/packages/zxing-qr-reader)[fanmade/laravel-bitwise-trait

Simple trait to use bitwise operators on any class

1373.4k](/packages/fanmade-laravel-bitwise-trait)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
