The Couchbase PHP SDK allows you to connect to a Couchbase cluster from PHP. The Couchbase PHP SDK is a native PHP extension and uses the Couchbase high-performance C library to handle communicating to the cluster over Couchbase binary protocols.

$ pecl install https://packages.couchbase.com/clients/php/couchbase-3.2.0.tgz

Couchbase PHP SDK 3.2

Getting Started

Dive right in with a quick install and Hello World.

Practical Howto Docs

Connect to our services — data (KV); Query; Search; Analytics; Views — and the Sub-Document API.

Reference Guides

The documentation supplements the practical Howto docs with references and concept guides, for those who prefer a broader understanding before diving in and coding.

What’s Hot?

The Couchbase PHP SDK 3.x is a complete rewrite of the API, reducing the number of overloads to present a simplified surface area, and adding support for Couchbase Server features like Collections and Scopes (available in Couchbase Server 7.0).

The Couchbase PHP SDK is compatible with PHP 7.3+.

About

Those useful nuts-and-bolts guides to compatibility tables; release notes; contribution guide; and the migration guide for moving to the 3.0 API.

Community

For community help, visit the Couchbase forums. The PHP SDK can be combined with many other projects in the broader PHP ecosystem and beyond — in the Couchbase Blog there are several examples.