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
yum install php-devel
Composer的安装
curl -s https://getcomposer.org/installer | php
下载完成后执行php composer.phar
cd php-protocolbuffers
phpize
./configure
make
make install
# please add following line to your php.ini
# extension=protocolbuffers.so
yum install php-devel
Composer的安装
curl -s https://getcomposer.org/installer | php
下载完成后执行php composer.phar