CouchDB extension for Yii, high-performance PHP framework.
The latest PHP and Composer versions. If you plan to play with the sources, you will also need the latest Phing version.
From a command prompt, run:
$ composer global require fxp/composer-asset-plugin
$ composer require cedx/yii2-couchdb
In your application configuration file, you can use the following component:
return [
'components' => [
'couchdb' => [
'class' => 'yii\couchdb\Connection',
'dsn' => 'couchdb://username:password@localhost:5984'
]
]
];
See the Guide for a full documentation about its usage.
In order to run the tests, you must set two environment variables:
$ export COUCHDB_USERNAME="<username>"
$ export COUCHDB_PASSWORD="<password>"
Then, you can run the test
script from the command prompt:
$ npm test
CouchDB for Yii is distributed under the MIT License.
This file contains highlights of what changes on each version of the CouchDB for Yii library.
yii\couchdb\Connection
and yii\couchdb\Exception
classes.
Comments