dev-master
9999999-devparse thrift file by php
MIT
The Development Requires
by zorrow
v0.0.2
0.0.2.0parse thrift file by php
MIT
The Development Requires
by zorrow
v0.0.1
0.0.1.0parse thrift file by php
MIT
The Development Requires
by zorrow
Wallogit.com
2017 © Pedro PelĂĄez
parse thrift file by php
To parse thrift file to struct,support constăenumăexceptionăincludeănamespaceăserviceăstructătypedef and union, (*1)
ParserCal,ParserFunc are baisc functions., (*2)
initSubject function (Class ThriftParser) is to set the sets which will be dealed., (*3)
$path = "./namespace.thrift"; $parserCal = new ParserCal($path); $parserFunc = new ParserFunc($parserCal); $parser = new ThriftParser($parserFunc); $thriftNamespace = new ThriftNamespace($parserFunc); $parser->initSubject($thriftNamespace); $file = $parser->readThrift();
[
'namespace' => [
'php' => [
'serviceName'=>'SMS'
]
]
]
https://github.com/eleme/thrift-parser, (*4)
parse thrift file by php
MIT
parse thrift file by php
MIT
parse thrift file by php
MIT