Skip to content

Commit

Permalink
Add PHP generation
Browse files Browse the repository at this point in the history
  • Loading branch information
phroggyy committed Feb 6, 2023
1 parent 52d34b8 commit dac0926
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/
2 changes: 2 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ plugins:
- remote: buf.build/library/plugins/go:v1.27.1-1
out: .
opt: paths=source_relative
- remote: buf.build/protocolbuffers/plugins/php:v21.10.0-1
out: .
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "jobilla/protoc-gen-appevents",
"description": "Appevents plugin for protobuf",
"type": "library",
"require": {
"google/protobuf": "^3.21"
},
"license": "MIT",
"autoload": {
"psr-4": {
"Jobilla\\Protobuf\\AppEvents\\": "jobilla/Protobuf/AppEvents"
}
},
"authors": [
{
"name": "Leo Sjoberg",
"email": "[email protected]"
}
],
"minimum-stability": "stable"
}
26 changes: 26 additions & 0 deletions jobilla/Protobuf/AppEvents/Metadata/Options.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions jobilla/appevents/options.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions jobilla/appevents/options.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
syntax="proto3";
option go_package="github.com/jobilla/protoc-gen-go-appevents/jobilla/appevents";
option php_namespace = "Jobilla\\Protobuf\\AppEvents";
option php_metadata_namespace = "Jobilla\\Protobuf\\AppEvents\\Metadata";

import "google/protobuf/descriptor.proto";

package jobilla.appevents;
Expand Down

0 comments on commit dac0926

Please sign in to comment.