Download the PHP package mustang/shoppingcart without Composer

On this page you can find all versions of the php package mustang/shoppingcart. 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 shoppingcart

mustang/shoppingcart

thinkphp5.0 购物车基于redis的实现,多存储介质待扩展。

安装方法

在项目中使用shoppingcart

V1.0版本仅更新了以Redis为存储介质的购物车,后期可能扩展其他存储介质。

需要在config.php中配置以下信息

"分片"

为处理商城中不止一个购物车的情况,增加了分片的概念。

获取购物车数据

获取用户特定购物车中商品|SKU的ID及数量。

购物车添加/减少商品

特定购物车中针对单个商品的更新数量,数量可增加可减少。

更新购物车中单件商品的SKU

如果购物车中使用到了SKU,存储的key实际上是SKU_ID,可能存在以下情况,一个商品的2种SKU同时存在在购物车中,修改其中的某个到另外一个,需要合并数量。

删除购物车中单种商品

从特定购物车中删除单一种商品

清空购物车

清空特定购物车中的所有商品

购物车是否存在某商品

判断购物车中是否存在某商品或者某商品SKU

该扩展只负责处理购物车数据部分,而不关心操作购物车之前的各种数据校验过程。


All versions of shoppingcart with dependencies

PHP Build Version
Package Version
Requires mustang/utils Version ^1.0
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 mustang/shoppingcart contains the following files

Loading the files please wait ....