yii2_fecshop is a free, open source e-commerce platforms project written in PHP and released under BSD-3-Clause. It has 5,259 GitHub stars, 1,395 forks and 4 open issues, and was last pushed 13 days ago. On this registry it ranks #15 of 30 tracked projects in E-commerce Platforms, with 5 head-to-head comparisons available. It gained 1 stars over the last 3 tracked days.

What is yii2_fecshop?

What it is

yii2_fecshop, now presented as FecMall, is an open-source e-commerce platform written in PHP on the Yii2 framework. It is BSD-3-Clause licensed and positioned as core code for building a B2C shopping mall. The project supports multiple languages, multiple currencies, and several entry points, including PC web, mobile web, Vue clients, app-facing services, and WeChat mini-program scenarios.

It addresses the need for a programmable e-commerce foundation rather than a fixed storefront. The README describes FecMall as a full-featured, framework-like system for programmers who want to learn the codebase and extend it for their own shop. It separates presentation, business logic, data access, and service orchestration so operators can customize catalog, cart, shopping, and integration flows across channels.

Key capabilities

  • Provides six entry points: appfront for PC, apphtml5 for WAP, appadmin for the backend, appserver for Vue clients, appapi for third-party integration, and console for backend scripts.
  • Supports multi-language and multi-currency operation for B2C storefronts that need localized catalogs and pricing.
  • Uses a layered architecture with Controller, Block, Model, View, and Services layers; Controllers handle scheduling, Models handle database mapping, Blocks contain middle logic, and Views handle display.
  • Includes configurable function blocks similar to Yii2 widgets, allowing shared components such as category sidebars, product recommendations, and newsletter blocks to be loaded through configuration and cached.
  • Places a Services layer above Models so higher layers access data through Services and sub-Services, supporting transaction handling and later refactoring of storage or concurrency approaches.

Who uses it and how

  • Developers build a B2C site by installing the FecMall package and customizing appfront, apphtml5, or appserver interfaces for desktop, mobile web, and Vue clients.
  • Teams needing API integration use appapi to connect the shop to third-party systems such as ERP, while administrators manage the store through appadmin and backend scripts through console.
  • Projects targeting WeChat mini-programs can use the appserver front-end and back-end separation pattern from the demos, and programmers can study the Block and Services layers before extending cart, catalog, and storefront behavior.

Getting started

Install FecMall through Composer online installation, as the README states direct git clone is not sufficient. Follow the FecMall 2.x development and installation documentation for setup.

When to use it — and when not to

Use this project when you need an open-source Yii2-based B2C commerce foundation with multiple languages, currencies, and entry points, and when your team can work directly with PHP code. Avoid it when you want a turnkey store deployed without programming, because the README positions FecMall as framework-like and aimed at programmers for secondary development. Self-hosters must operate a Composer-based PHP/Yii2 application and the storage layer implied by the Model and Services design, while the provided facts do not mention a hosted option or one-click deployment.

project readme (upstream, from github) — read inline


Latest Stable Version Total Downloads Latest Unstable Version

Fecshop更名为FecMall

详细参看:关于Fecshop更名为FecMall的原因


Fecmall-2.x版本

Fecmall-2版本在用户体验方面进行了很多的优化,请安装Fecmall-2版本

Fecmall-1.x版本

项目状态:

Fecmall开源项目已经全部开发完毕,一共六大入口:pc端(appfront),wap端(apphtml5),后台(appadmin) ,vue端(appserver),第三方系统对接端(appapi),后台脚本端(console),都全部开发完毕, 您可以使用Fecmall用于您的线上电商项目, Fecmall是一个功能齐全的开源电商系统,偏框架,适合程序员深入学习使用, 二开比较容易,欢迎大家使用Fecmall开发自己的电商项目。

ai codex会带来开源商城的繁荣

1、Fecmall介绍

Fecmall 全称为Fancy ECommerce Mall,是基于php Yii2框架之上开发的一款优秀的开源电商系统, Fecmall支持多语言,多货币,架构上支持pc,手机web,手机app,和erp对接等入口,您可以免费快速的定制和部署属于您的电商系统。

详细参看地址:Fecmall开源商城功能列表

Fecmall 官网:http://www.fecmall.com ,您可以在这里提交bug,问题咨询等等。

Fecmall 【已完成】PC Web Demo :http://fecshop.appfront.fancyecommerce.com

Fecmall 【已完成】Mobile Web Demo(WAP):http://fecshop.apphtml5.fancyecommerce.com

Fecmall 【已完成】Mobile VUE Demo(Appserver,前后端彻底分离模式):http://demo.fancyecommerce.com/#/

Fecmall 【已完成】微信小程序(Appserver,前后端彻底分离模式):微信小程序搜索:Fecmall查看demo,或者扫下面的小程序码:

wx_xiaochengxu_fecmall

Fecmall 后台演示地址:http://www.fecmall.com/yanshi (该帖子里面有后台演示地址)

作者, Terry Email:[email protected]

Fecmall QQ群号(新):782387676,入群验证:fecmall

Fecmall Github地址: https://github.com/fancyecommerce/yii2_fecshop

Fecmall 码云地址: https://gitee.com/fecshopsoft/yii2_fecshop

Fecmall开源协议:Fecmall 授权协议

Fecmall线上项目案例:http://www.fecmall.com/topic/55

Fecmall问题咨询,Bug提交等参看:Fecmall论坛

Fecmall开源项目历程:Fecmall时间线

2、Fecmall文档,视频,扩展库

二开以及安装文档: Fecmall 开发文档【撰写完成】

使用帮助说明文档: Fecmall 帮助文档【撰写完成】

使用帮助说明文档: Fecmall 应用市场文档【撰写完成】

3、安装Fecmall

请务必按照说明安装,Fecmall是基于composer在线安装,直接git clone下载下来是不行的,请按照下面的说明操作

Fecmall 安装教程文档

4、联系Terry:

扫一扫添加Terry的微信:

weixin

5、架构特色

架构特色:参看详细介绍:Fecmall 架构特色

下面是简叙:

Fecmall 全称为Fancy ECommerce Mall,是一款优秀的开源电商系统,遵循BSD-3-Clause协议(和Yii2框架一样的开源协议), 目的是为了方便yii2用户快速的 开发商城,Fecmall作为一款可以持续性发展的商城系统, 在框架层面有以下特性:

  1. 由于商城系统的复杂性,原始的框架MVC结构,显的有点力不从心,Fecmall框架 加入了Block层, Controller层只负责调度, Model只负责数据库映射,中间的处理逻辑由block来完成,View层 负责显示,这样各司其职, 以免造成controller文件过于庞大。

  2. 加入独立功能块,有点类似Yii2的Widget,目的是为了让一些侧栏公用块 可以通过配置的方式 添加,同时,还可以具有设置缓存的功能,譬如分类侧栏的产品推荐, newsletter等独立显示块可能在很多 页面用到,通过独立功能块可以配置方便的载入。

  3. 在Model层的上层加入服务层Services,这样,Controller,Block,View 层,在原则上 不能直接调用model,必须通过Services层以及子Services层,然后Services访问各个 model,组织数据,事务处理等操作, 将数据结果返回给上层,这种设计可以方便以后业务 发展后,进而根据业务特点进行重构,或者以后如果出现新技术,新方式, 都重构成自己想要的样子,譬如, 将某个底层由mysql换成mongodb,或者为了应付高并发读写并且多事务性的功能部分, 进行分库分表的设计方式。

关于Fecmall Service,详细参看:Fecshop Services

  1. Fecmall多模板系统,Fecmall设置了多个模板路径,各个模板路径下的文件被加载 的优先级不同,其中,Fecmall的模板路径下的文件最全面,但是优先级最低, ,第三方模板路径优先级其次,用户本地模板路径优先级最高, 用户可以通过 复制相应路径下的view或者js,css文件到本地模板路径,存在于高优先级 模板路径的文件会被优先加载,这样用户可以通过多模板系统的原理进行模板的 制作,同时,不影响Fecmall模板的升级,如果Fecmall view文件升级后被修改, 那么用户可以比对本地模板文件与升级模板文件的代码的不同, 复制更改的代码到本地模板路径 即可。第三方的模板路径的优先级介于本地模板路径和Fecmall 模板路径之间。

  2. 重写机制,Fecmall的功能基本都可以被用户重写,包括servies层,Modules, Controller,Block,Views,View Layout, 以及Js Css Img等,都可以被用户重写,其中 Js,Css,Img,Views,View Layout 是通过多模板 路径优先级来实现的,其他的是通过配置文件的覆盖更改来实现重写,这样,用户 就可以很方便重构Fecmall或者第三方的功能和模板。

  3. 升级最小化干扰,Fecmall的核心文件是放到vendor/fancyecommerce/fecshop 路径下面,和第三方扩展,用户二次开发路径完全隔离开, Fecmall可以通过composer进行核心功能的升级,用户只需要通过composer升级 即可。

  4. 快速高效,Fecmall Servises遵循Yii2的懒加载方式,只初始化使用到的组件服务, 缓存方面有整页缓存,block部分缓存,动态数据ajax加载等方式,让您的网站快速响应。

  5. Fecmall 多入口模式,分为 appadmin(后台), appfront(PC前端),apphtml5(手机web), appserver(手机app服务),appapi(erp,或者其他接口对接), 不同的业务,不同的设备,进入不同的入口,各个入口共用服务层services, 但是modules部分独立,这样相互干扰最小,可以相互独立开发。

  6. 后台封装化,fec_admin扩展可以快速的实现增删改查类型的表单列表, 方便用户快速的做增删改查。

鉴于以上特点,您可以下载安装Fecmall,然后更改Fecmall的模板和功能,扩展自己想要 的功能,或者安装第三方开发好了的扩展或者模板,来快速的组建起来您的网站。

6、捐赠

如果您认为这是一个不错的项目,对您有帮助,你可以通过下面的方式进行捐赠, 这里感谢您对开源项目的支持。

支付宝:

微信:

捐赠历史:(捐助,建议写一下留言)

捐赠人 金额 时间 方式 账户 捐助者留言
(*飞) ¥66.60 2020-02-25 微信 - 感谢,祝公司稳健发展
(*) ¥50 2020-02-20 微信 -
(*然) ¥166 2020-01-20 微信 - 开源界的一股清流,加油
(T*t) ¥20.00 2019-12-11 微信 - 很不错,赞一个
(*圣茜) ¥200.00 2019-12-09 支付宝 - 支持开源 支持分享
(*光) ¥0.66 2019-11-27 微信 -
(*可) ¥1.00 2019-11-26 微信 - 支持你,加油
(*可) ¥1.00 2019-11-26 微信 -
(*可) ¥1.00 2019-09-30 微信 - 失业中没钱只能表示下
(*爱) ¥200.00 2019-09-02 微信 - 基于fecshop二次开发的商城已上线,感谢这么好的开源系统
(*志兵) ¥50.00 2019-08-11 微信 - 支持一下
(*懿卿 ¥20.00 2019-07-29 支付宝 -
(*彩虹) ¥10.00 2019-07-24 微信 - 学生党不宽裕但支持
(*堂) ¥1.00 2019-07-12 微信 - 支持
(*葫芦娃) ¥200.00 2019-06-06 微信 - 咨询了很多电商的事情,感谢帮助
(*锋) ¥20.00 2019-05-13 支付宝 - 我想做个商城
(*宁) ¥50.00 2019-04-29 微信 -
(*亮亮 ¥100.00 2019-04-06 支付宝 - 支持榜样,标杆
(*亮) ¥50.00 2019-04-06 微信 - 坚持,加油!
(*树桓) ¥50.00 2019-03-30 支付宝 -
pptrue ¥50.00 2019-03-19 微信 - 支持开源,感谢Terry
(*军) ¥188.00 2019-03-10 微信 - 为3年的坚持点赞
(*浩) ¥66.00 2019-02-13 微信 - 支持fecshop长久发展
(*嘉文) ¥0.10 2019-01-28 支付宝 -
(*凡) ¥10.00 2019-01-07 支付宝 - 加油
(y*g) ¥100.00 2018-12-26 微信 - 腾讯andehuang
(董*) ¥10.00 2018-12-24

readme truncated — read the full docs on github

Frequently asked questions

Is yii2_fecshop free to use?

yii2_fecshop is open source under the BSD-3-Clause licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does yii2_fecshop do?

yii2 ( PHP ) fecmall(fecshop) core code used for ecommerce shop 多语言多货币多入口的开源电商 B2C 商城,支持移动端vue, app, html5,微信小程序微店,微信小程序商城等

What is yii2_fecshop written in?

yii2_fecshop is primarily written in PHP. Its source is publicly available at https://github.com/fecshop/yii2_fecshop, and it has 5,259 GitHub stars.