定制 miladalsh/couchbase-yii2 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

miladalsh/couchbase-yii2

Composer 安装命令:

composer require miladalsh/couchbase-yii2

包简介

This extension provides the Coucbase SDK integration for the Yii2 framework

README 文档

README

Couchbase SDK for Yii2 - Use Couchbase in your Yii project

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your composer.json file.

Usage

Configure in application config like the following:

'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

Install the couchbase php client:

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

copy:

 
[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

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

Install couchbase-server:

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

统计信息

  • 总下载量: 590
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-05-06