Skip to content
DEPRECATED - PHP extension wrapping libcouchbase
C PHP Perl Other
Pull request Compare This branch is 115 commits ahead, 2 commits behind couchbaselabs:master.
Latest commit 8c3771e Jan 4, 2016 @brett19 brett19 Indicated that this repo is deprecated in favor of:
https://github.com/couchbase/php-couchbase.

Change-Id: Ic2ed13892384d2fdf8747d11c93a74a8ccdf6d60
Reviewed-on: http://review.couchbase.org/58235
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Failed to load latest commit information.
example Correct documentation error for getReplica. Jun 18, 2014
fastlz Bundle fastlz Nov 8, 2012
management PCBC-256: Added missing connect call for lcb management instances. Dec 10, 2013
package Add bucket manipulation example Apr 2, 2013
tests PCBC-219 bugfix Apr 20, 2014
tools Fixup whitespace Nov 21, 2012
.gitignore PCBC-79 Allow to specify licouchbase location for tarballs Nov 13, 2012
CONTRIBUTING.md Add information on how to contribute to the driver Dec 4, 2012
CREDITS Update CREDITS file May 6, 2013
LICENSE Add package build script. Jan 20, 2012
README.md Indicated that this repo is deprecated in favor of: Jan 4, 2016
TESTING.pod Add testing howto Nov 7, 2012
apidecl.c PCBC-246 Add support for LCB_CNTL_SKIP_CONFIGURATION_ERRORS_ON_CONNECT Aug 29, 2013
apidecl.h Add missing license headers Jul 12, 2013
arithmetic.c PCBC-251: Add missing prefix for incr/decr/unlock Oct 1, 2013
ccache.c Add missing license headers Jul 12, 2013
compress.c Add missing license headers Jul 12, 2013
config.m4 Updated support for getReplica Jul 12, 2013
config.w32 Updated support for getReplica Jul 12, 2013
convert.c PCBC-219 bugfix Apr 20, 2014
couchbase.c Remove bogus {{{ }}} Aug 30, 2013
couchbase.php Initial commit, finish ext skeleton. Jan 10, 2012
create.c Corrected segfault when using unwriteable cache directory. Mar 18, 2014
designdoc.c Add missing license headers Jul 12, 2013
error.c Add missing license headers Jul 12, 2013
exceptions.c Add missing license headers Jul 12, 2013
exceptions.h Add missing license headers Jul 12, 2013
flush.c PCBC-241: Fix compile warnings Aug 26, 2013
get.c PCBC-241: Fix compile warnings Aug 26, 2013
ht.c Add missing license headers Jul 12, 2013
ht.h Add missing license headers Jul 12, 2013
internal.h Correct issue causing SDK 2.0 compatability to fail. Feb 9, 2015
misc.c Add missing license headers Jul 12, 2013
observe.c Fixup observe test failure Sep 26, 2013
options.c Add missing license headers Jul 12, 2013
package.xml Release 1.2.2 May 11, 2014
php_couchbase.h Next version should be 1.2.0 Sep 26, 2013
remove.c PCBC-251: Add missing prefix for incr/decr/unlock Oct 1, 2013
replica.c Change too generic function name Oct 14, 2013
resget.h Add missing license headers Jul 12, 2013
resmgr.c Add missing license headers Jul 12, 2013
simple_observe.c PCBC-241: Fix compile warnings Aug 26, 2013
simple_observe.h Add missing license headers Jul 12, 2013
stat.c Remove bogus {{{ }}} Aug 30, 2013
store.c Revert "Revert "PCBC-227: Allow store of pure numeric keys"" Sep 26, 2013
timeout.c Add missing license headers Jul 12, 2013
touch.c PCBC-241: Fix compile warnings Aug 26, 2013
unlock.c PCBC-251: Add missing prefix for incr/decr/unlock Oct 1, 2013
version.c Add missing license headers Jul 12, 2013
viewopts.c Add missing license headers Jul 12, 2013
views.c PCBC-226 Use HTTP POST if "keys" are specified Sep 1, 2013
views.h Add missing license headers Jul 12, 2013

README.md

ext/couchbase

A PHP extension wrapping libcouchbase.

Note: This extension has been deprecated and is superseeded by: https://github.com/couchbase/php-couchbase/

Dependencies

libcouchbase igbinary (optional)

Installation

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 127.0.0.1:8091

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/igbinary.so

First Step

Create a new script test.php:

<?php
$cb = new Couchbase("127.0.0.1:8091", "Administrator",
                    "password", "default");
$cb->set("a", 1);
$a = $cb->get("a");
echo $a;
?>

Compatibility

PHP 5.3 or later.

Windows support is coming in the next release.

License

Apache License 2.0

Credits

See CREDITS file. Thanks all!

Copyright

(c) 2011, 2012, 2013 Couchbase

Contributions

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

Something went wrong with that request. Please try again.