Couchbase PHP Client Library

Version 6 by ingenthr
on Jun 05, 2012 00:39.

compared with
Version 7 by mnunberg
on Oct 22, 2012 18:35.

This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
h2. Installing

Ideally it is recommended you install everything from the binary releases featured at

h3. Stable

_libcouchbase: _


h3. Developer Preview


|| PHP Version\\ || Libcouchbase Version || Stable || Server Compatibility\\ || Supported Features\\ ||
| 1.0.x | 1.0.x | Yes | 2.0, 1.8 | * Key-Value operations |
| 1.1-dp5 | 2.0.0beta2 | Developer\\
Preview | 2.0, 1.8 | * Key-Value operations
* MapReduce View Queries
* Lock, Touch |
| master branch | 2.0.0beta2 (or current\\
libcouchbase master) | Volatile | 2.0, 1.8 | Same as 1.1-dp5, maybe some\\
other goodies |
| 1.0.x branch | 1.0.x | Yes (mostly) | 2.0, 1.8 | Same as 1.0.x release |

h4. Installing From Source

It is a common need to install for source (specifically, there is a lot of variation in the Zend API revisions)

*Recommended: *The first thing to do is install libcouchbase. If you are using a 1.8 server version OR are using a server of any version, but are not planning to employ views and MapReduce, you may use the *{_}stable{_}* version of libcouchbase (this is versioned as *{_}1.0.x{_}*).

*NOTE:* The stable php extension version is available in source form from the _1.0.x_ branch on github.

If you wish to use the new and shiny features of Couchbase Server 2.0\[-beta\], then you need to use the *{_}Developer Preview (DP)_* versions of both libcouchbase and the php extension

_It is not required to build both libcouchbase and the php extension from source. As long as you have any version of libcouchbase installed (and its development headers, i.e. libcouchbase-dev or libcouchbase-devel)_ _it is possible to compile and build the PHP extension_

Use the above version matrix to determine the version you need.

For php-ext-couchbase source installation, do the folllowing:

$ git clone git://
$ cd php-ext-couchbase

# If wishing to compile the stable branch of php-ext-couchbase, do the following
$ git checkout 1.0.x

$ phpize
$ ./configure
$ make
$ make install (or just copy modules/ to your extension directory)
If libcouchbase is installed in a non-default path (for example, in your home directory) then you need to specify _\--with-couchbase=$dir_ to _./configure_, where $dir is the installation prefix; such that _$dir/include/libcouchbase/couchbase.h_ exists, and that _$dir/lib/libcouchbase.so_ (or _libcouchbase.dylib, for OS X_) exists

h2. Testing



h2. Techniques