Skip to content
Newer
Older
100644 41 lines (31 sloc) 1.36 KB
ce386de @daschl show, edit and readme.
daschl authored
1 # Couchbase PHP Beer-Sample Application
2
3 This sample application demonstrates the usage of the Couchbase PHP SDK 1.1 in
4 combination with the Couchbase Server 2.0 release.
5
6 The official tutorial belonging to this application can be found
7 [here](http://www.couchbase.com/docs/couchbase-sdk-php-1.1/tutorial.html).
8
9 It is a very simple web application that should show off the basics on how to
10 interact with Couchbase Server 2.0 on both key-based and view-based operations.
11
12 ## Requirements
13 Please make sure to have PHP 5.3 and Composer available. You also need to have
14 the Couchbase Extension (Version 1.1 or higher) installed.
15
16 ## Installation
17 Clone the application (or follow along in the tutorial), and run
18
19 ```
20 php composer.phar install
21 ```
22
23 Make sure to clone the application inside the /beersample-php subdirectory of
24 the WEBROOT, because otherwise you need to change all the absolute links in
25 there as well.
26
27 ## Configuration
28 The application should be able to run out of the box if you have the beer-sample
29 dataset installed and Couchbase Server 2.0 is running on your local machine. You
30 can tune the settings on top of the `index.php` file:
31
32 ```php
33 define("SILEX_DEBUG", true);
34 define("COUCHBASE_HOSTS", "127.0.0.1");
35 define("COUCHBASE_BUCKET", "beer-sample");
36 define("COUCHBASE_PASSWORD", "");
37 define("COUCHBASE_CONN_PERSIST", true);
38 define("INDEX_DISPLAY_LIMIT", 20);
39 ```
40
41 Have fun!
Something went wrong with that request. Please try again.