We have to install php_couchbase extension when we are goign to use couchbase with php.



The php version I use here is php 7.1.29

The settings and instructions I am giving here is related to that php version.


Follow below steps.

Download php coucbase dll files from below link according to your php version and system.

https://pecl.php.net/package/couchbase/2.4.4/windows

To "install" the extension, extract the zipfile and execute the following commands from within that directory:

copy php_couchbase.dll c:\xampp\php\ext
copy libcouchbase.dll c:\xampp\php
copy libcouchbase.dll c:\xampp\apache\bin


Then open php.ini file and add below line.

[couchbase]
extension=php_couchbase.dll


Restart the wampserver from the Control panel


When you set up php_couchbase extension , you can see that extension is enabled in php