Which PHP client library to use with Cassandra?

前端 未结 4 2160
伪装坚强ぢ
伪装坚强ぢ 2020-12-18 05:55

I\'ve tried phpcassa but what about \"Cassandra PHP Client Library\" or \"SimpleCassie\"? Which one would be the best choice?

相关标签:
4条回答
  • 2020-12-18 06:10

    Check out PHP Binary CQL, which is a CQL client that uses the new binary protocol.

    Blog post: http://blog.robert.mcfrazier.com/php-binary-cql/

    Github: https://github.com/rmcfrazier/phpbinarycql

    Disclosure: I'm the author of this library, please feel free to submit pull requests.

    0 讨论(0)
  • 2020-12-18 06:15

    I suggest PHPCassa which has

    1. An active support group http://groups.google.com/group/phpcassa

    2. Nice tutorial on API and Examples @ http://thobbs.github.com/phpcassa/.

    3. Provides PHP extension for Thrift Library.

    4. Supports all operations as mentioned in Cassandra Wikki

    5. Support for composite types has been added [from version 1.0.a.1]

    6. Support for cassandra version 1.0 & 1.1 and thrift version 0.8 is added

    Download Link https://github.com/thobbs/phpcassa

    0 讨论(0)
  • 2020-12-18 06:27

    (Since PHPCassa will no longer be supported and Pandra is abandoned, this question deserves a new answer.)

    DataStax PHP Driver for Cassandra is suggested by PHPCassa devs as an alternative that supports CQL, has many excellent features, and is well maintained.

    Github and Official website

    Update: It now supports PHP 7

    Update 2 (2019): It now supports PHP 7.1

    0 讨论(0)
  • 2020-12-18 06:28

    In my project I use Pandra : https://github.com/mjpearson/Pandra/wiki and it works fine.

    0 讨论(0)
提交回复
热议问题