Using PHP + VoltDB together?

Is there a way to use voltDB in a PHP application?

It seems to have several advantages over other databases!

+4
source share
3 answers

That's right.

VoltDB has added the HTTP / JSON client interface for VoltDB, which is now available for preview. You can download / build from http://community.voltdb.com/getinvolved#svn

In addition, there is a C ++ client library (from the same page in the section "Client Interfaces for Other Programming Languages") and will be used to create its own client library for PHP. Join the community at http://community.voltdb.com for an update.

+5
source

The PHP built-in client library specified by @tmcallaghan is currently under development.

You can download / build it here:

https://svn.voltdb.com/clientapi/php/trunk/

And here is a usage example:

https://source.voltdb.com/browse/ClientAPI/php/trunk/examples/helloworld.php?r=HEAD

+5
source

The developer of VoltDB is here. Ning Shi just finished a very good PHP extension, which is a big improvement in the performance and usability of the old PHP extension.

The old extension was a SWIG cover around the C ++ client library, which was verbose due to weaker VAR support and C ++ reflex. The server also did not support binding parameters as strings for you, which meant that the client had to know the signature of the procedure in front, and the application had to provide it.

The new extension does not have PHP code, so it loads faster and has a more idiomatic PHP interface that uses PHP arrays and does not require you to declare a procedure and its parameters before calling it.

The new client is on the page.

+3
source

Source: https://habr.com/ru/post/1314411/


All Articles