Skip to content

webmaster777/php-protocolbuffers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-protocolbuffers Build Status

Objective

php-protocolbuffers provides full protocol buffers features into PHP.

Status

Alpha (considering phpish API design)

Requirements

  • PHP5.3 higher

PHP5.2 is limited support (can't use ProtocolBuffers\Message::parseFromString(). you have to encode / decode via ProtocolBuffers methods).

  • Google's protoc compiler version 2.3 or above ¹

¹Only needed for generate classes from .proto file.

Install

git clone https://github.com/chobie/php-protocolbuffers.git
cd php-protocolbuffers
phpize
./configure
make
make install
# please add following line to your php.ini
# extension=protocolbuffers.so

protoc-gen-php is related project (https://github.com/chobie/protoc-gen-php). you need this when you generate message from .proto file.

More information

see wiki https://github.com/chobie/php-protocolbuffers/wiki

Features

Standard types (numbers, string, enums, messages, etc)supported
Repeated fieldssupported
Packed attributessupported
Extensionsbeta
Unknown fieldsbeta
64bit valuesbeta
Service (RPC)not supported yet

License

New BSD License

Packages

No packages published

Languages

  • C 52.7%
  • PHP 44.2%
  • Protocol Buffer 1.5%
  • C++ 1.4%
  • Ruby 0.2%