Table of Contents
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:
PHP 5.3 or later: The PHP SDK itself requires 5.3 or later, nearly all of the dependencies used here require 5.3.
Couchbase PHP SDK 1.1: Install the appropriate .so or .dll file, depending on your platform. Earlier versions are not capable enough, because we make use of the brand new view-related functionality.
Composer: An excellent dependency manager for PHP and supported by major libraries and frameworks like Doctrine or Symfony.