tree: c93ae34b57dfab15bcc298d6f79d7d4000f0c752
  1. BUILD.bazel
  2. defs.bzl
  3. deps.bzl
  4. php_grpc_compile.bzl
  5. php_proto_compile.bzl
  6. README.md
php/README.md

php

RuleDescription
php_proto_compileGenerates php protobuf artifacts
php_grpc_compileGenerates php protobuf+gRPC artifacts

php_proto_compile

Generates php protobuf artifacts

WORKSPACE

load("@build_stack_rules_proto//php:deps.bzl", "php_deps")

php_deps()

BUILD.bazel

load("@build_stack_rules_proto//php:defs.bzl", "php_proto_compile")

php_proto_compile(
    name = "person_php_proto",
    deps = ["@build_stack_rules_proto//example/proto:person_proto"],
)

Mandatory Attributes

NameTypeDefaultDescription
depslist<ProtoInfo>[]List of labels that provide a ProtoInfo (such as native.proto_library)

Optional Attributes

NameTypeDefaultDescription
verboseint0The verbosity level. Supported values and results are 1: show command, 2: show command and sandbox after running protoc, 3: show command and sandbox before and after running protoc, 4. show env, command, expected outputs and sandbox before and after running protoc

php_grpc_compile

Generates php protobuf+gRPC artifacts

WORKSPACE

load("@build_stack_rules_proto//php:deps.bzl", "php_deps")

php_deps()

load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")

grpc_deps()

BUILD.bazel

load("@build_stack_rules_proto//php:defs.bzl", "php_grpc_compile")

php_grpc_compile(
    name = "greeter_php_grpc",
    deps = ["@build_stack_rules_proto//example/proto:greeter_grpc"],
)

Mandatory Attributes

NameTypeDefaultDescription
depslist<ProtoInfo>[]List of labels that provide a ProtoInfo (such as native.proto_library)

Optional Attributes

NameTypeDefaultDescription
verboseint0The verbosity level. Supported values and results are 1: show command, 2: show command and sandbox after running protoc, 3: show command and sandbox before and after running protoc, 4. show env, command, expected outputs and sandbox before and after running protoc