Registry / serialization / rgooding-protobuf-php

rgooding-protobuf-php

JSON →
library0.0.1phppackagistunverified

PHP implementation of Google's Protocol Buffers

composer require rgooding/protobuf-php
INSTALL
IMPORT
SIG · RGOODING-PROTOBUF-
R
rgooding-protobuf-php
serializationphpv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Message
use Protobuf\Message;

Define a protobuf message and serialize/deserialize it.

use Protobuf\Message; class MyMessage extends Message { public string $name = ''; } $msg = new MyMessage(); $msg->name = 'test'; $bytes = $msg->serializeToString(); $decoded = new MyMessage(); $decoded->mergeFromString($bytes);
Debug
Known issues
gotchaThis package is very early (v0.0.1) and may have incomplete protobuf support.
fix
Check the documentation for supported features and consider using google/protobuf for production.
affects: <=0.0.1
Upgrade
Version history
0.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
rgooding-protobuf-php — pip install rgooding-protobuf-php · libregistry