Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Script to automatically build the php-memcached extension with a statically linked libmemcached.so
Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
INSTALL.md
LICENSE
Makefile
README.md
build-php-memcached.sh
build-source-package.sh

README.md

Couchbase driver for PHP

Contents:

./ ./README.md This file. ./memcached.so The PHP extension as a shared library.

Installation

Edit your php.ini to include this line:

extension=memcached.so

To find where you php.ini file is, try phpi -i | grep memcached or look at your <?php phpinfo() ?> output.

Verify Installation

Run this test script:

<?php
$mc = new Memcached;
$mc->addServer("localhost", 11211);
$mc->set("a", 1);
var_dump($mc->get("a"));

Make sure you have started your memcached, Membase or Couchbase server. Adjust the hostname and port as needed.

Support

If you have an questions, problems or suggestions, please let us know on the Couchbase SDK forums:

http://www.couchbase.org/forums/sdks/sdks

Build from Source

To build this package from source, follow these steps:

Get Repo

$ curl http://android.git.kernel.org/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Get Source

$ mkdir php-couchbase-memcached
$ repo init -u git://github.com/couchbase/php-memcached-manifest.git

Build

$ make

Done.

Something went wrong with that request. Please try again.