php-protobuf

时间:2018-11-15 11:35:59
【文件属性】:
文件名称:php-protobuf
文件大小:38KB
文件格式:ZIP
更新时间:2018-11-15 11:35:59
php protobuf protobuf是google提供的一个开源序列化框架,类似于XML,JSON这样的数据表示语言,其最大的特点是基于二进制,因此比传统的XML表示高效短小得多。虽然是二进制数据格式,但并没有因此变得复杂,开发人员通过按照一定的语法定义结构化的消息格式,然后送给命令行工具,工具将自动生成相关的类,可以支持php、java、c++、python等语言环境。通过将这些类包含在项目中,可以很轻松的调用相关方法来完成业务消息的序列化与反序列化工作。 protobuf在google中是一个比较核心的基础库,作为分布式运算涉及到大量的不同业务消息的传递,如何高效简洁的表示、操作这些业务消息在google这样的大规模应用中是至关重要的。而protobuf这样的库正好是在效率、数据大小、易用性之间取得了很好的平衡。
【文件预览】:
php-protobuf-master
----example()
--------example.php(329B)
--------pb_proto_foo.php(3KB)
--------foo.proto(93B)
----reader.h(984B)
----CREDITS(131B)
----ProtobufCompiler()
--------FileDescriptor.php(2KB)
--------FieldDescriptor.php(6KB)
--------EnumValueDescriptor.php(642B)
--------MessageDescriptor.php(3KB)
--------FieldLabel.php(133B)
--------CommentStringBuffer.php(2KB)
--------DescriptorInterface.php(361B)
--------EnumDescriptor.php(2KB)
--------ProtobufParser.php(41KB)
--------CodeStringBuffer.php(2KB)
----reader.c(4KB)
----writer.c(5KB)
----tests()
--------serialize_repeated.phpt(304B)
--------serialize_embedded.phpt(356B)
--------test.inc(14KB)
--------repeated_field_accessors.phpt(785B)
--------parse_simple.phpt(1KB)
--------skipif.inc(95B)
--------set_float_field.phpt(440B)
--------serialize_error.phpt(295B)
--------set_int_field.phpt(421B)
--------set_object_value.phpt(308B)
--------serialize_simple.phpt(1KB)
--------parse_error.phpt(343B)
--------parse_repeated.phpt(349B)
--------test.proto(671B)
--------parse_embedded.phpt(395B)
--------set_string_field.phpt(447B)
----protoc-php.php(3KB)
----php_protobuf.h(289B)
----LICENSE.md(2KB)
----stubs()
--------ProtobufMessage.php(2KB)
----protobuf.c(25KB)
----writer.h(1KB)
----README.md(7KB)
----protobuf.h(389B)
----config.m4(295B)

网友评论

  • 没有编译好的库,不知道怎么使用。和git PHP Protobuf内容很像