Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP Client for the Bitcask K/V store
PHP Erlang Shell
tree: d4e2192e88

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
PHPCask.class.php
README.md
php_cask.erl
test.php

README.md

PHPCask

PHPCask is client for the Bitcask K/V Store recently released by Basho

On the PHP side it requires the PHP Erlang Bridge Extension

Note that this client is very simple. It's aim is to showcase what can be done with the PHP Erlang Bridge Extension and with Bitcask from PHP.

Running The Tests

Open the Terminal and type:

> cd path/to/bitcask/ebin
> erlc path/to/phpcask/php_cask.erl
> erl -sname phpcask -pa ../deps/ebloom/ebin/

Inside the erlang CLI:

> php_cask:start().

Open another Terminal window and type:

> cd path/to/phpcask/
> php test.php erlang_cookie

You can read the test.php file to see how does it work.

erlang_cookie must be the value of the Erlang Cookie used by the node running Bitcask.

TODO

  • Improve error handling
  • Implement the complete Bitcask API
  • Add more test
  • Fork this project and improve it that's you :)
Something went wrong with that request. Please try again.