matrozov/yii2-couchbase

Couchbase extension for the Yii framework with ActiveRecord, QueryBuilder and Migration support.

Installs: 1 865

Dependents: 1

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 6

Open Issues: 4

Type:yii2-extension

dev-master 2018-03-29 20:48 UTC

This package is auto-updated.

Last update: 2024-03-29 03:57:31 UTC


README

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',
        ],
    ],
];