Fetching contributors…
Cannot retrieve contributors at this time
76 lines (48 sloc) 1.59 KB


A PHP extension wrapping libcouchbase.

Note: This extension has been deprecated and is superseeded by:


libcouchbase igbinary (optional)


End users should install the module by executing:

$ pecl install couchbase

Developers who want to build the latest bits from the source repository may execute the following steps

$ phpize
$ ./configure
$ make
$ make test

Running make test assumes that you have a Couchbase server listening on port

If you are using a webserver installation of PHP, you might need to restart your webserver.

If you have igbinary installed, make test will most likely fail with an error message reporing a missing symbol. Don't worry; it has an explanation. During make test php generates another php.ini file for us which don't include the igbinary module. To work around this all you need to do is to edit the Makefile and add the following as the first parameter parameter to run-tests.php:

-d extension=/absolute/path/to/

First Step

Create a new script test.php:

$cb = new Couchbase("", "Administrator",
                    "password", "default");
$cb->set("a", 1);
$a = $cb->get("a");
echo $a;


PHP 5.3 or later.

Windows support is coming in the next release.


Apache License 2.0


See CREDITS file. Thanks all!


(c) 2011, 2012, 2013 Couchbase


If you'd like to contribute to the project, please look in