PHPackages                             fancyecommerce/fecshop\_redis\_cart - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. fancyecommerce/fecshop\_redis\_cart

ActiveYii2-extension[Caching](/categories/caching)

fancyecommerce/fecshop\_redis\_cart
===================================

fecshop cart use redis storage

1.2.0(7y ago)84310BSD-3-ClausePHP

Since Jan 9Pushed 7y ago4 watchersCompare

[ Source](https://github.com/fecshop/yii2_fecshop_redis_cart)[ Packagist](https://packagist.org/packages/fancyecommerce/fecshop_redis_cart)[ Docs](https://github.com/fecshop/yii2_fecshop_redis_cart)[ RSS](/packages/fancyecommerce-fecshop-redis-cart/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

 [ ![](https://camo.githubusercontent.com/2a86fca6dbe8aec0b704c0c8daccc518f3ca87dd47106be93a0c0260dc202f4f/687474703a2f2f696d672e61707066726f6e742e66616e637965636f6d6d657263652e636f6d2f637573746f6d2f6c6f676f2e706e67) ](http://fecshop.appfront.fancyecommerce.com/)

[![Latest Stable Version](https://camo.githubusercontent.com/8c979aac0e2f3ecfb8e9553b887e4bfb39ffe5bac93c1df76688ec366bbef00c/68747470733a2f2f706f7365722e707567782e6f72672f66616e637965636f6d6d657263652f66656373686f705f72656469735f636172742f762f737461626c65)](https://packagist.org/packages/fancyecommerce/fecshop_redis_cart)[![Total Downloads](https://camo.githubusercontent.com/c7b77157e1cbf015cd5374efaa9fbc512a55ff02ffbd563d130ee7d89bfd5e11/68747470733a2f2f706f7365722e707567782e6f72672f66616e637965636f6d6d657263652f66656373686f705f72656469735f636172742f646f776e6c6f616473)](https://packagist.org/packages/fancyecommerce/fecshop_redis_cart)[![Latest Unstable Version](https://camo.githubusercontent.com/a7d7e51531035f9c5eda0c0ff0407d2f3319b5913cba293f4834eaa2e8f24c87/68747470733a2f2f706f7365722e707567782e6f72672f66616e637965636f6d6d657263652f66656373686f705f72656469735f636172742f762f756e737461626c65)](https://packagist.org/packages/fancyecommerce/fecshop_redis_cart)[![License](https://camo.githubusercontent.com/f61c4ccbb3b0f88d656b67897451f5992353dc6c73cad49af83336cb8aa821dd/68747470733a2f2f706f7365722e707567782e6f72672f66616e637965636f6d6d657263652f66656373686f705f72656469735f636172742f6c6963656e7365)](https://packagist.org/packages/fancyecommerce/fecshop_redis_cart)

Fecshop Redis购物车的实现

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

安装
--

[](#安装)

```
composer require --prefer-dist fancyecommerce/fecshop_redis_cart

```

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

```
"fancyecommerce/fecshop_redis_cart": "1.1.0"

```

**注意版本号**:

fecshop-1.7.1.0以上版本请使用yii2\_fecshop\_redis\_cart-1.2.0以上的版本

fecshop-1.7.0.0以下的版本请使用yii2\_fecshop\_redis\_cart-1.1.0

版本查看：[https://github.com/fecshop/yii2\_fecshop\_redis\_cart/releases](https://github.com/fecshop/yii2_fecshop_redis_cart/releases)

[https://github.com/fecshop/yii2\_fecshop\_redis\_cart/releases](https://github.com/fecshop/yii2_fecshop_redis_cart/releases)

然后执行

```
composer update

```

配置
--

[](#配置)

1.配置文件复制

将`vendor\fancyecommerce/fecshop_redis_cart\config\fecshop_rediscart.php` 复制到 `@common\config\fecshop_third_extensions\fecshop_rediscart.php`(需要创建该文件)

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

2.redis配置

Cart信息保存到磁盘，因此需要配置redis写入到磁盘，可以参看: [yii2 – redis 配置](http://www.fancyecommerce.com/2016/05/03/yii2-redis-%E9%85%8D%E7%BD%AE/)的 `1.2 （可选操作）对于redis的磁盘存储` 部分。

3.配置文件

4.然后，cart信息就存储到redis里面了，该扩展安装在路径 `vendor/fancyecommerce/fecshop_redis_cart`下

###  Health Score

33

↑

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~100 days

Total

12

Last Release

2631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec5a339478fbac730172c3f33080ec137a76f0e228c0f703dee8a6be373cad03?d=identicon)[fancyecommerce](/maintainers/fancyecommerce)

---

Top Contributors

[![fancyecommerce](https://avatars.githubusercontent.com/u/16605599?v=4)](https://github.com/fancyecommerce "fancyecommerce (24 commits)")

---

Tags

cartfecshopredisyii2yii2fecshopredis cart

### Embed Badge

![Health badge](/badges/fancyecommerce-fecshop-redis-cart/health.svg)

```
[![Health](https://phpackages.com/badges/fancyecommerce-fecshop-redis-cart/health.svg)](https://phpackages.com/packages/fancyecommerce-fecshop-redis-cart)
```

###  Alternatives

[devgroup/yii2-tag-dependency-helper

Helper for unifying cache tag names with invalidation support in yii2

34507.4k7](/packages/devgroup-yii2-tag-dependency-helper)[bazilio/yii2-async

Provides translucent api for moving large tasks out of request context

6248.8k2](/packages/bazilio-yii2-async)[pyurin/yii2-redis-ha

Basic redis-ha client

18272.7k](/packages/pyurin-yii2-redis-ha)[lajax/yii2-asset-minifier

Runtime minification and combination of asset files.

1010.4k](/packages/lajax-yii2-asset-minifier)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
