Skip to content

schmaun/protobuf-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compile .proto files to PHP

$ find ./instapro -name '*.proto' -print0 | xargs -0 bin/protoc --php_out=./demo/messages

Linting & BC break

$ buf lint
$ buf breaking --against .git#branch=main

Run the demo

$ make consumer
$ make publisher

Install

Make sure php is in your $PATH and at least version 8.0.0.

You need a running RabbitMq server on localhost:5672 (user: guest, password: guest)

# Install protobuf with brew
$ brew install protobuf

# install runtime as PHP
$ composer require google/protobuf

# install PHP runtime as Pecl
$ pecl install protobuf

About

Small demo project for a protobuf talk

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published