Home  >  Article  >  Backend Development  >  Compile and install the ProtoBuf extension

Compile and install the ProtoBuf extension

藏色散人
藏色散人forward
2019-07-16 15:12:003038browse

Introduction

ProtoBuf, Google's Protocol Buffers for PHP, is a lightweight and efficient structured data storage format that can be used for structured data serialization and is very suitable for data storage or RPC data exchange format

Download

$ git clone https://github.com/allegro/php-protobuf.git

Installation

$ phpize
$ ./configure --with-php-config=/www/server/php/72/bin/php-config
$ sudo make
$ sudo make install

Configuration

extension=protobuf.so

Test

$ php -m | grep protobuf

The above is the detailed content of Compile and install the ProtoBuf extension. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete