PHP PECL extension for Couchbase Server
./ ./README.md This file. ./LICENSE License information ./couchbase.ini Description of all of the tunables ./couchbase.so The PHP extension as a shared library. ./couchbase-api.php A PHP file containing a dummy definition of all classes and constants that you may use in your IDE to get code completion etc.
php.ini to include this line after putting the extension
in the correct directory.:
If you're on a Red Hat Enterprise Linux or CentOS platform, this is best done as:
Note that in either case you can use a complete path, such as:
To find where your
php.ini file is, try
php --ini or
look at your
<?php phpinfo() ?> output. This can also identify the
extension directory if you wish to copy the extension there.
Run this test script:
<?php $cb = new Couchbase("127.0.0.1:8091", "username", "password", "default"); $cb->set("a", 1); var_dump($cb->get("a"));
Make sure you have started your Couchbase server. Adjust the hostname, port, user name and password as needed.
If you have an questions, problems or suggestions, please let us know on the Couchbase SDK forums:
Apache License 2.0 — See LICENSE for details.