Skip to content

matrozov/yii2-couchbase

Repository files navigation

Couchbase Extension for Yii2

This extension provides the Couchbase integration for the Yii framework 2.0 with ActiveRecord, QueryBuilder and Migration supports.

For license information check the LICENSE-file.

Documentation is at docs/guide-ru/README.md.

Latest Stable Version Total Downloads Build Status License

Installation

This extension requires Couchbase PHP Extension version 2.3 or higher.

This extension requires Couchbase server version 4.6 or higher.

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist matrozov/yii2-couchbase

or add

"matrozov/yii2-couchbase": "dev-master"

to the require section of your composer.json.

Configuration

To use this extension, simply add the following code in your application configuration:

return [
    //....
    'components' => [
        'couchbase' => [
            'class' => '\matrozov\couchbase\Connection',
            'dsn' => 'couchbase://localhost:11210',
            'userName' => 'Administrator',
            'password' => 'Administrator',
        ],
    ],
];

Releases

No releases published

Packages

No packages published