Compile and install the ProtoBuf extension

藏色散人
Release: 2023-04-07 06:24:01
forward
3054 people have browsed it

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
Copy after login

Installation

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

Configuration

extension=protobuf.so
Copy after login

Test

$ php -m | grep protobuf
Copy after login

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!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template