Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A PHP extension wrapping libcouchbase

tag: 1.0.6

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bugs
Octocat-spinner-32 fastlz Bundle fastlz November 08, 2012
Octocat-spinner-32 package
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 CREDITS
Octocat-spinner-32 LICENSE Add package build script. January 20, 2012
Octocat-spinner-32 README.md
Octocat-spinner-32 THANKS.md
Octocat-spinner-32 compress.c
Octocat-spinner-32 config.m4
Octocat-spinner-32 config.w32
Octocat-spinner-32 couchbase.c
Octocat-spinner-32 couchbase.php Initial commit, finish ext skeleton. January 10, 2012
Octocat-spinner-32 internal.h
Octocat-spinner-32 php_couchbase.h
README.md

ext/couchbase

A PHP extension wrapping libcouchbase.

Dependencies

libcouchbase

Installation

$ phpize
$ ./configure
$ make
$ make test # assumes a Couchbase Server 1.8 or later running on 127.0.0.1:8091
$ make install

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

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.2.9 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 Couchbase

Something went wrong with that request. Please try again.