php-protocolbuffers-example
Requirements
- PHP 7.x
- protoc
- Mac OSX
brew install protobuf
- Linux/Windows
- Download, unzip and set path from official release
- Mac OSX
install
composer install
generate code
$ protoc --php_out=build/gen public/addressbook.proto
run
php -S localhost:8080 index.php