项目作者: matrozov

项目描述 :
Yii 2 CouchBase extension
高级语言: PHP
项目地址: git://github.com/matrozov/yii2-couchbase.git
创建时间: 2017-07-10T20:51:58Z
项目社区:https://github.com/matrozov/yii2-couchbase

开源协议:MIT License

下载


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

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

or add

  1. "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:

  1. return [
  2. //....
  3. 'components' => [
  4. 'couchbase' => [
  5. 'class' => '\matrozov\couchbase\Connection',
  6. 'dsn' => 'couchbase://localhost:11210',
  7. 'userName' => 'Administrator',
  8. 'password' => 'Administrator',
  9. ],
  10. ],
  11. ];