A complete CouchDB Query Server written in PHP.
curl -s https://getcomposer.org/installer | php
You can run this command to easily access composer from anywhere on your system:
sudo mv composer.phar /usr/local/bin/composer
Once you have installed Composer, it's easy install Elephant on Couch Server.
- Move into the directory where is located
If you are using MacPorts on Mac OS X, you can find it on
/opt/local/share/couchdb/server, instead if you installed
CouchDB from source you'll probably find it
/usr/share/couchdb/server/. Please refer to the CouchDB installation
- Create a project for EoC Server:
sudo composer create-project 3f/eoc-server
You are finally ready to configure CouchDB to use EoC Server. At this point you just need to edit
Then, under the
[query_servers] section, add the following line:
To benefit of EoC Server you must use EoC Client, a PHP client library for CouchDB. Using EoC Client, you can interact with CouchDB, and you can write your views directly in PHP. You don't need to know about CouchDB internals, neither JSON, just learn EoC Client and use it. All you need is to learn the MapReduce concept and an high level guide on CouchDB.
PHP 5.4.7 or above.
Elephant on Couch Server is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.