2017 © Pedro Peláez
 

library eoc-server

A complete CouchDB Query Server written in PHP.

image

3f/eoc-server

A complete CouchDB Query Server written in PHP.

  • Thursday, August 11, 2016
  • by dedalozzo
  • Repository
  • 2 Watchers
  • 4 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Latest Stable Version Latest Unstable Version Build Status Scrutinizer Code Quality License Total Downloads, (*1)

Elephant on Couch Server

EoC Server is a CouchDB's Query Server implementation made in PHP programming language. CouchDB delegates computation of views, shows, filters, etc. to external query servers. It communicates with them over standard input/output, using a very simple, line-based protocol. CouchDB launches the query server and starts sending commands. The server responds according to its evaluation of the commands. The default query server is written in JavaScript. You can use other languages by setting a MIME type in the language property of a design document or the Content-Type header of a temporary view. Design documents that do not specify a language property are assumed to be of type JavaScript, as are ad-hoc queries that are POSTed to temporary view without a Content-Type header. Using EoC Server you can finally write your views, updates, filters, shows directly in PHP. No more JavaScript, just pure PHP., (*2)

Composer Installation

To install EoC Server, you first need to install Composer, a Package Manager for PHP, following those few steps:, (*3)

``` sh curl -s https://getcomposer.org/installer | php, (*4)


You can run this command to easily access composer from anywhere on your system: ``` sh sudo mv composer.phar /usr/local/bin/composer

EoC Server Installation

Once you have installed Composer, it's easy install Elephant on Couch Server., (*5)

  1. Move into the directory where is located main.js file: ``` sh cd /opt/local/share/couchdb/server
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
[instructions](http://wiki.apache.org/couchdb/Installation).

2. Create a project for EoC Server:
``` sh
sudo composer create-project 3f/eoc-server

CouchDB Configuration

You are finally ready to configure CouchDB to use EoC Server. At this point you just need to edit local.ini configuration file:, (*6)

``` sh vim /opt/local/etc/couchdb/local.ini, (*7)


Then, under the `[query_servers]` section, add the following line: ``` sh [query_servers] php=/opt/local/share/couchdb/server/eoc-server/bin/eocsvr.php

Usage

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., (*8)

Requirements

PHP 5.4.7 or above., (*9)

Authors

Filippo F. Fadda - filippo.fadda@programmazione.it - http://www.linkedin.com/in/filippofadda, (*10)

License

Elephant on Couch Server is licensed under the Apache License, Version 2.0 - see the LICENSE file for details., (*11)

The Versions

11/08 2016

dev-master

9999999-dev http://github.com/dedalozzo/eoc-server

A complete CouchDB Query Server written in PHP.

  Sources   Download

Apache-2.0

The Requires

 

server nosql couchdb view server query server

15/01 2016

1.9

1.9.0.0 http://github.com/dedalozzo/eoc-server

A complete CouchDB Query Server written in PHP.

  Sources   Download

Apache-2.0

The Requires

 

server nosql couchdb view server query server

24/04 2015

1.8

1.8.0.0 http://github.com/dedalozzo/eoc-server

A complete CouchDB Query Server written in PHP.

  Sources   Download

Apache-2.0

The Requires

 

server nosql couchdb view server query server

25/02 2015

1.7

1.7.0.0 http://github.com/dedalozzo/eoc-server

A complete CouchDB Query Server written in PHP.

  Sources   Download

Apache-2.0

The Requires

 

server nosql couchdb view server query server

25/02 2015

1.6

1.6.0.0 http://github.com/dedalozzo/eoc-server

A complete CouchDB Query Server written in PHP.

  Sources   Download

Apache-2.0

The Requires

 

server nosql couchdb view server query server

30/05 2014

1.5

1.5.0.0 http://github.com/dedalozzo/EOCSvr

A complete CouchDB Query Server written in PHP.

  Sources   Download

Apache-2.0

The Requires

 

server nosql couchdb view server query server

15/07 2013

1.4

1.4.0.0 http://github.com/dedalozzo/EOCSvr

A complete CouchDB server written in PHP.

  Sources   Download

Apache License 2.0

The Requires

 

server nosql couchdb view server query server

29/10 2012

1.0

1.0.0.0 http://github.com/dedalozzo/EOCSvr

A complete CouchDB server written in PHP.

  Sources   Download

Apache License 2.0

The Requires

 

server nosql couchdb view server query server