basho/riak-php-client — pull request #20 by gaiaops (2011-12-22 21:27:09+00:00)
Title: Transport

This is a work in progress, only spent a few days on it, but everything works so far. Will continue to refactor until i get the code the way I like it, but wanted to pass along a rough functional version to get feedback.

This library contains an http transport as well as two different protocol buffer transports that I found out on the web and am experimenting with. Both work fine, but the protobuf one is slightly faster than the pb one. Both are faster than http. There is still room for improvement. I am hacking away on improving the performance of the protocol buffer php serialization.

Also need to work on socket error handling and code commenting.

The code is backward compatible with the interface of the original library, but does require php 5.3 because it uses namespaces. all the code is broken up into appropriate namespaced directories and uses autoload to include them. In addition, the library can be packaged up into a compressed phar.tar.gz file that is only 33K. nice and portable just like the original code.