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.1.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?

Leverage the new Couchbase Server Scopes and Collection features to build multi-tenant micro-service application.

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.