Cassandra PHP module [closed] Cassandra PHP module [closed] php php

Cassandra PHP module [closed]


Although this is an old question, thobb's version of PHPCassa has become a nice standard for PHP development with Apache Cassandra. The link referenced in the accepted question is to the hoan version of PHPCassa, which is not as current (last update was 2 years ago) or robust as the forked version that thobbs maintains: https://github.com/thobbs/phpcassa

  • Compatible with Cassandra 0.7, 0.8 and 1.x
  • Optional C extension for improved performance

I'm thoroughly happy with it, and have been for well over a year now. Continual development and you can see contributions being pushed upstream now from other developers.

You'll note that Pandra hasn't had any updates for quite some time too. +1yr


You can use Thrift.

Thrift was an infrastructure built by Facebook. Using a definitions file (ending with ".thrify"), it defines all services available on a given services and methods available from something. You can then generate headers for any supported language (PHP, Python, etc..), start the thrift server, and use the headers to transparently communicate with the Thrift server, which then communicates natively with whatever it is that you want to interact with. It works great and Cassandra supports it: https://wiki.fourkitchens.com/display/PF/Using+Cassandra+with+PHP .

If you want to know the calls that Cassandra has defined, just look in the Thrift definition.