Home >Backend Development >PHP Tutorial >Compile and install the ProtoBuf extension
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!