Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: PHP 1.1
Community Wiki and Resources
Wiki: PHP Client Library
PHP Client Library
Couchbase Developer Guide 2.0
Couchbase Server Manual 2.0
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Couchbase Client Library: PHP 1.1
Child Sections
Chapters

Chapter 2. Tutorial

Table of Contents

2.1. Preparations
2.1.1. Setting up Couchbase Server
2.1.2. Installing the Application Dependencies
2.2. Bootstrapping the Application
2.3. Managing Beers
2.4. Wrapping Up

Building on the foundations of the Getting Started guide, this tutorial will show you how to build a full-blown web application on top of Couchbase Server 2.0. We'll make use of a very powerful toolchain, consisting of Composer, Silex and Twig to build a solid web application fast while not losing the focus on showing how to work with the PHP SDK.

We'll make use of the beer-sample dataset to display and manage beers and breweries. Along the way we'll pickup concepts on querying Couchbase Server 2.0 by keys or through views.

The full code sample is available on GitHub. You can clone the repository and work from there if you would simply like to see the finished application.

While we'll cover the installation process in detail, make sure to have the following dependencies in place: