aminkt/yii2-shop-module
Composer 安装命令:
composer require aminkt/yii2-shop-module
包简介
Yii2 shop module for shopping sites
README 文档
README
NOTE:
This module need aminkt/yii2-ordering-module.
Use bellow link to access ordering module
How to install this module:
Step1: First add flowing codes into project composer.json
"repositories": [
{
"type": "gitlab",
"url": "https://gitlab.com/aminkt/yii2-shop-module"
}
],
Then add flowing line to require part of composer.json :
"aminkt/yii2-shop-module": "*",
And after that run bellow command in your composer :
Composer update aminkt/yii2-shop-module
Step2: Add flowing lines in modules part of your application config:
'ordering' => [
'class' => \aminkt\ordering\Order::className(),
'orderModelName' => models\Order::className(),
'orderItemModelName' => models\OrderItem::className(),
'customerProfileModelName' => models\Customer::className(),
'productModelName' => models\Product::className(),
],
Step3: Add flowing lines in module part of your frontend application config:
'shop' => [
'class'=>\aminkt\shop\Shop::className(),
'productModel' => models\Product::className(),
'categoryModel' => models\Category::className(),
'userModel' => models\Member::className(),
'theme' => [
'pathMap' => [
\aminkt\shop\Shop::THEME_PATH =>'@frontendWeb/themes/theme_name/shop',
],
'baseUrl'=>"/themes/theme_name",
],
]
step4: Add flowing lines in components part of your application config:
'order' => [
'class' => aminkt\ordering\components\Order::className(),
'orderModel'=> models\Order::className(),
'orderItemModel'=> models\OrderItem::className(),
],
Step5: Implement
aminkt\ordering\interfaces\OrderInterfacein your orders modelaminkt\ordering\interfaces\OrderItemInterfacein your orderItems modelaminkt\shop\interfaces\CustomerProfileInterfacein you customer users modelaminkt\shop\interfaces\ProductInterfacein your products modelaminkt\shop\interfaces\CategoryInterfacein your Category model
Step6: Add flowing code into yor product modal.
public function getCartPosition()
{
return \Yii::createObject([
'class' => ProductCartPosition::className(),
'id' => $this->id,
]);
}
Step6: In @frontendWeb/themes/theme_name/shop path create your own template of shop.
Step6: Enjoy from module.
aminkt/yii2-shop-module 适用场景与选型建议
aminkt/yii2-shop-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 08 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「shop」 「module」 「order」 「ordering」 「yii2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aminkt/yii2-shop-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aminkt/yii2-shop-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aminkt/yii2-shop-module 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Admin Hub for GetCandy. A modern headless e-commerce solution for Laravel PHP framework.
Sylius plugin that adds the possibility to add products to the shopping cart using a button on the product card.
Submodule for SilverShop which allows you to compare products in a table.
An ID Generator for PHP based on Snowflake Algorithm (Twitter announced).
Product catalog for your Symfony2 applications.
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: All
- 更新时间: 2018-08-20