-
Notifications
You must be signed in to change notification settings - Fork 38
Home
Shuhei Tanuma edited this page Dec 27, 2013
·
30 revisions
php-protocolbuffers provides Fast and Robust protocol buffers serializer and deserializer into PHP.
- Getting Started
- The Basics
- Error Handling
- protoc-gen-php
- API
- PHP Scalar value types
- FAQ
- Testing
- Related Projects
- Linux like OS
- Windows
| Standard types (numbers, string, enums, messages, etc) | supported |
| Repeated fields | supported |
| Packed attributes | supported |
| Extensions | alpha |
| Unknown fields | beta |
| Service (RPC) | not supported yet |
| 64bit values | EXPERIMENTAL |
-
__sleepand__wakeupmethod support.
You can use above magic methods when enabling UseWakeupAndSleep flag. Be careful, this feature is not part of protocolbuffers specification.
these method will call when parseFromString and serializeToString (also supports ProtocolBuffers::decode and ProtocolBuffers::encode)
$phpoptions = $descriptor_builder->getOptions()->getExtension(ProtocolBuffers::PHP_MESSAGE_OPTION);
$phpoptions->setUseWakeupAndSleep(true); // default is off
$descriptor = $descriptor_builder->build();
