Need help with php-protocolbuffers?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

chobie
125 Stars 38 Forks Other 662 Commits 20 Opened issues

Description

PECL ProtocolBuffers

Services available

!
?

Need anything else?

Contributors list

# 149,236
Lua
Shell
D
641 commits
# 12,408
PHP
Redis
php7
yaf
2 commits
# 238,847
PHP
C
Shell
libgit2
2 commits
# 41,073
Laravel
vuejs
Haxe
actions...
1 commit
# 9,874
autohot...
ahk
bitwise...
Nette
1 commit

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 fields supported
Packed attributes supported
Extensions beta
Unknown fields beta
64bit values beta
Service (RPC) not supported yet

License

New BSD License

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.