Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matrozov/yii2-couchbase
Yii 2 CouchBase extension
https://github.com/matrozov/yii2-couchbase
couchbase couchdb yii2 yii2-extension
Last synced: 3 months ago
JSON representation
Yii 2 CouchBase extension
- Host: GitHub
- URL: https://github.com/matrozov/yii2-couchbase
- Owner: matrozov
- License: mit
- Created: 2017-07-10T20:51:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-25T17:51:57.000Z (almost 5 years ago)
- Last Synced: 2024-10-01T14:25:06.587Z (4 months ago)
- Topics: couchbase, couchdb, yii2, yii2-extension
- Language: PHP
- Homepage:
- Size: 116 KB
- Stars: 5
- Watchers: 3
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Couchbase Extension for Yii2
============================This extension provides the [Couchbase](https://couchbase.com) integration for the [Yii framework 2.0](http://www.yiiframework.com) with ActiveRecord, QueryBuilder and Migration supports.
For license information check the [LICENSE](LICENSE.md)-file.
Documentation is at [docs/guide-ru/README.md](docs/guide-ru/README.md).
[![Latest Stable Version](https://poser.pugx.org/matrozov/yii2-couchbase/v/stable.png)](https://packagist.org/packages/matrozov/yii2-couchbase)
[![Total Downloads](https://poser.pugx.org/matrozov/yii2-couchbase/downloads.png)](https://packagist.org/packages/matrozov/yii2-couchbase)
[![Build Status](https://travis-ci.org/matrozov/yii2-couchbase.svg?branch=master)](https://travis-ci.org/matrozov/yii2-couchbase)
[![License](https://poser.pugx.org/matrozov/yii2-couchbase/license)](https://packagist.org/packages/matrozov/yii2-couchbase)## Installation
This extension requires [Couchbase PHP Extension](https://developer.couchbase.com/documentation/server/current/sdk/php/start-using-sdk.html) version 2.3 or higher.
This extension requires [Couchbase server](https://www.couchbase.com/products/server) version 4.6 or higher.
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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:
```php
return [
//....
'components' => [
'couchbase' => [
'class' => '\matrozov\couchbase\Connection',
'dsn' => 'couchbase://localhost:11210',
'userName' => 'Administrator',
'password' => 'Administrator',
],
],
];
```