PHPackages                             dehydr8/protobuf-decoder - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. dehydr8/protobuf-decoder

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

dehydr8/protobuf-decoder
========================

Decoder for protobuf messages

2322PHP

Since Feb 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dehydr8/protobuf-decoder)[ Packagist](https://packagist.org/packages/dehydr8/protobuf-decoder)[ RSS](/packages/dehydr8-protobuf-decoder/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

protobuf-decoder
================

[](#protobuf-decoder)

[![Build Status](https://camo.githubusercontent.com/178f1d8b984d7603c771b58b6dcee19b7f32cdae3a7897488c5f2f1ce75ec25e/68747470733a2f2f7472617669732d63692e6f72672f646568796472382f70726f746f6275662d6465636f6465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dehydr8/protobuf-decoder)

*protobuf-decoder* is a PHP library that reads raw protobuf buffers and returns a sane representation of the data.

The protobuf encoding format can be found [here](https://developers.google.com/protocol-buffers/docs/encoding).

Notes
-----

[](#notes)

1. Wiretypes 3 `(start group)`, 4 `(end group)` and 5 `(32bit fixed)` not implemented as of yet

Representation
--------------

[](#representation)

```
00000000  08 8f 81 eb cf e0 2a 12  08 6b 6f 74 6c 69 6e 34  |......*..kotlin4|
00000010  36 3a 05 00 01 03 04 07  42 00 48 fa 01 55 00 00  |6:......B.H..U..|
00000020  48 43 72 0a 0a 08 50 4f  4b 45 43 4f 49 4e 72 0c  |HCr...POKECOINr.|
00000030  0a 08 53 54 41 52 44 55  53 54 10 64              |..STARDUST.d|
0000003c

```

to

```
[
    {
        "field": "1",
        "value": "1469046243471"
    },
    {
        "field": "2",
        "value": "kotlin46"
    },
    {
        "field": "7",
        "value": "\u0000\u0001\u0003\u0004\u0007"
    },
    {
        "field": "8",
        "value": ""
    },
    {
        "field": "9",
        "value": "250"
    },
    {
        "field": "10",
        "value": "00004843"
    },
    {
        "field": "14",
        "value": [
            {
                "field": "1",
                "value": "POKECOIN"
            }
        ]
    },
    {
        "field": "14",
        "value": [
            {
                "field": "1",
                "value": "STARDUST"
            },
            {
                "field": "2",
                "value": "100"
            }
        ]
    }
]
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

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/a009b7ef57959728fad9f0556b24bb2911ab1483adb460824d908bd53930ff08?d=identicon)[Pancts](/maintainers/Pancts)

---

Top Contributors

[![dehydr8](https://avatars.githubusercontent.com/u/1941842?v=4)](https://github.com/dehydr8 "dehydr8 (3 commits)")

---

Tags

decodedeserializationprotobuf

### Embed Badge

![Health badge](/badges/dehydr8-protobuf-decoder/health.svg)

```
[![Health](https://phpackages.com/badges/dehydr8-protobuf-decoder/health.svg)](https://phpackages.com/packages/dehydr8-protobuf-decoder)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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