Giter VIP home page Giter VIP logo

php-ext-couchbase's Introduction

ext/couchbase

A PHP extension wrapping libcouchbase.

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.

php-ext-couchbase's People

Contributors

trondn avatar janl avatar mnunberg avatar laruence avatar ingenthr avatar mjackson-omniti avatar avsej avatar daschl avatar pierrejoye avatar giabao avatar brett19 avatar e-oz avatar bsubhashni avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.