Download the PHP package zks888/fecshop_couchbase without Composer

On this page you can find all versions of the php package zks888/fecshop_couchbase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fecshop_couchbase

Latest Stable Version Total Downloads Latest Unstable Version License

Fecshop Couchbase购物车的实现

fecshop 采用couchbase实现底层, 存储用户的cart信息。

安装

or 在根目录的composer.json中添加

然后执行

配置

1.配置文件复制

vendor\zks888\fecshop_couchbase\config\fecshop_couchbase.php 复制到 @common\config\fecshop_third_extensions\fecshop_couchbase.php(需要创建该文件)

该文件是扩展的配置文件,通过上面的操作,加入到fecshop的插件配置中

2.couchbase配置

Couchbase 安装

Couchbase 中文资料

Couchbase SDK-DOCTOR

Couchbase 建索引

3.在couchbase中建立两个bucket,分别为:cart、item,

Access Control请选择Standard port (TCP port 11211. Needs SASL auth.) Enter password: 请不要设置

使用之前,请一定要先给cart建立cart_id的索引,item建立cart_id和product_id的联合索引,

因为couchbase在bucket没有建索引的情况下,查询是会报错的

先在couchbase的终端管理后台执行:

然后在@console\config\main.php里添加如下代码:

最后就可以添加索引了

4.然后,cart信息就存储到couchbase里面了,该扩展安装在路径 vendor/zks888/fecshop_couchbase


All versions of fecshop_couchbase with dependencies

PHP Build Version
Package Version
Requires fancyecommerce/fecshop Version >=1.3.1.0
matrozov/yii2-couchbase Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zks888/fecshop_couchbase contains the following files

Loading the files please wait ....