php-protocolbuffers-example

Requirements

  • PHP 7.x
  • protoc
    • Mac OSX brew install protobuf
    • Linux/Windows

install

composer install

generate code

$ protoc --php_out=build/gen public/addressbook.proto

run

php -S localhost:8080 index.php

Reference