Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/couchbaselabs/beersample-php
https://github.com/couchbaselabs/beersample-php
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/couchbaselabs/beersample-php
- Owner: couchbaselabs
- Created: 2012-12-11T14:57:33.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-11-19T16:16:45.000Z (about 9 years ago)
- Last Synced: 2024-04-12T16:19:08.652Z (9 months ago)
- Language: HTML
- Size: 68.4 KB
- Stars: 4
- Watchers: 146
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Couchbase PHP Beer-Sample Application
This sample application demonstrates the usage of the Couchbase PHP SDK 1.1 in
combination with the Couchbase Server 2.0 release.The official tutorial belonging to this application can be found
[here](http://www.couchbase.com/docs/couchbase-sdk-php-1.1/tutorial.html).It is a very simple web application that should show off the basics on how to
interact with Couchbase Server 2.0 on both key-based and view-based operations.## Requirements
Please make sure to have PHP 5.3 and Composer available. You also need to have
the Couchbase Extension (Version 1.1 or higher) installed.## Installation
Clone the application (or follow along in the tutorial), and run```
php composer.phar install
```Make sure to clone the application inside the /beersample-php subdirectory of
the WEBROOT, because otherwise you need to change all the absolute links in
there as well.## Configuration
The application should be able to run out of the box if you have the beer-sample
dataset installed and Couchbase Server 2.0 is running on your local machine. You
can tune the settings on top of the `index.php` file:```php
define("SILEX_DEBUG", true);
define("COUCHBASE_HOSTS", "127.0.0.1");
define("COUCHBASE_BUCKET", "beer-sample");
define("COUCHBASE_PASSWORD", "");
define("COUCHBASE_CONN_PERSIST", true);
define("INDEX_DISPLAY_LIMIT", 20);
```Have fun!