2017 © Pedro Peláez
 

library protoc-gen-php

protoc generator plugin for PECL ProtocolBuffers

image

cstabor/protoc-gen-php

protoc generator plugin for PECL ProtocolBuffers

  • Monday, October 16, 2017
  • by cstabor
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 22 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

protoc-gen-php

protoc php generator plugin ., (*1)

Build Status, (*2)

Installation

you can install protoc-gen-php with composer command., (*3)

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

# 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., (*4)

see https://github.com/chobie/protoc-gen-php/blob/master/proto/.protoc.php.yml, (*5)

Environments

you can override protoc-gen-php behavior with environemnts., (*6)

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, (*7)

The Versions

16/10 2017

dev-master

9999999-dev https://github.com/chobie/protoc-gen-php

protoc generator plugin for PECL ProtocolBuffers

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

protocol buffers protoc

16/10 2017

0.3

0.3.0.0 https://github.com/chobie/protoc-gen-php

protoc generator plugin for PECL ProtocolBuffers

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

protocol buffers protoc

16/10 2017

0.2

0.2.0.0 https://github.com/chobie/protoc-gen-php

protoc generator plugin for PECL ProtocolBuffers

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

protocol buffers protoc

16/10 2017

0.1.1

0.1.1.0 https://github.com/chobie/protoc-gen-php

protoc generator plugin for PECL ProtocolBuffers

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

protocol buffers protoc

11/02 2014

0.1.0

0.1.0.0 https://github.com/chobie/protoc-gen-php

protoc generator plugin for PECL ProtocolBuffers

  Sources   Download

BSD-2-Clause

The Requires

 

protocol buffers protoc