protocolbuffers/protoc-gen-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

protocolbuffers/protoc-gen-php

Composer 安装命令:

composer require protocolbuffers/protoc-gen-php

包简介

protoc generator plugin for PECL ProtocolBuffers

README 文档

README

protoc php generator plugin .

Build Status

Installation

you can install protoc-gen-php with composer command.

# add protocolbuffers/protoc-gen-php entry to your global composer.json ($HOME/.composer/composer.json)
{
    "require": {
        "protocolbuffers/protoc-gen-php": "dev-master"
    }
}

# install with composer
composer global install
# set PATH (add this line to your .bashrc or .zshrc.)
export PATH=$HOME/.composer/vendor/bin/:$PATH

Usage

# this will link composer/bin/protoc-gen-php to /usr/local/bin/protoc-gen-php
protoc --php_out=<output_directory> -I. person.proto

# you can also specify the command.
protoc --plugin=vendor/bin/protoc-gen-php --php_out=<output_directory> -I. person.proto

Features

Yaml based insertion

protoc has comment based insertion point mechanism. it's very usefull to customize generated message. but you need to write custom plugin when using that. protoc-gen-php has pragmatic feature which will check .protoc.php.yml and insert contents when matched.

see https://github.com/chobie/protoc-gen-php/blob/master/proto/.protoc.php.yml

Environments

you can override protoc-gen-php behavior with environemnts.

key description example
PACKAGE over ride package name. expects dot delimited package name PACKAGE=chobie.io
PEAR_STYLE don't use namespace. PEAR_STYLE=1

requirements

License

new BSD License

统计信息

  • 总下载量: 9.13k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 52
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 52
  • Watchers: 5
  • Forks: 22
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2014-01-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固