2017 © Pedro Peláez
 

yii2-extension couchbase-yii2

This extension provides the Coucbase SDK integration for the Yii2 framework

image

miladalsh/couchbase-yii2

This extension provides the Coucbase SDK integration for the Yii2 framework

  • Thursday, May 7, 2015
  • by MiladAlshomary
  • Repository
  • 1 Watchers
  • 0 Stars
  • 246 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

couchbase-yii

Couchbase SDK for Yii2 - Use Couchbase in your Yii project, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist "miladalsh/couchbase-yii2": "dev-master"

or add, (*4)

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

to the require section of your composer.json file., (*5)

Usage

Configure in application config like the following:, (*6)

'components'=>array(
  'couchbase' => array(
            'class' => 'CCouchbaseConnection',
            //dsn of one of the nodes, 
 *      //the php client will determine if there are multiple nodes in the cluster
            'connectionString' => 'couchbase://127.0.0.1',
            'username' => 'Administrator',
            'password' => '',
        )

Instructions to install couchbase server and PHP client on CentOS/Redhat, (*7)

Install the couchbase php client:, (*8)

sudo nano /etc/yum.repos.d/couchbase.repo

copy:, (*9)

 
[couchbase]
enabled = 1
name = Couchbase package repository
baseurl = get url from http://docs.couchbase.com/developer/c-2.4/download-install.html
gpgcheck = 1
gpgkey = http://packages.couchbase.com/rpm/couchbase-rpm.key

save file, (*10)

 
yum install libcouchbase2-core 
yum install libcouchbase-devel 
yum install libcouchbase2-bin 
yum install libcouchbase2-libevent
pecl install couchbase

Install couchbase-server:, (*11)

wget get url from http://www.couchbase.com/nosql-databases/downloads
sudo rpm --install couchbase-server-enterprise-3.0.2-centos6.x86_64.rpm

The Versions

07/05 2015

dev-master

9999999-dev

This extension provides the Coucbase SDK integration for the Yii2 framework

  Sources   Download

Apache-2.0

The Requires

 

by Milad Alshomary

extension yii2 couchbase