mw-cms/ecommerce-bundle
Composer 安装命令:
composer require mw-cms/ecommerce-bundle
包简介
Ecommerce bundle based on sylius
关键字:
README 文档
README
Installation
AppKernel.php
Please register the bundle before DoctrineBundle. This is important as we use listeners which have to be processed first.
public function registerBundles()
{
$bundles = [
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle(),
new Sylius\Bundle\LocaleBundle\SyliusLocaleBundle(),
new Sylius\Bundle\AttributeBundle\SyliusAttributeBundle(),
new Sylius\Bundle\ProductBundle\SyliusProductBundle(),
new Sylius\Bundle\AttributeBundle\SyliusAttributeBundle(),
new Sylius\Bundle\TaxonomyBundle\SyliusTaxonomyBundle(),
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
new AWEcommerceBundle\AWEcommerceBundle(),
new Misd\PhoneNumberBundle\MisdPhoneNumberBundle()
new Knp\Bundle\SnappyBundle\KnpSnappyBundle(),
// Other bundles...
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
];
}
Entities
Create this entities and give them a Table name
- AppBundle\Entity\Ecommerce\Address extends AWEcommerceBundle\Entity\Address
- AppBundle\Entity\Ecommerce\Customer extends AWEcommerceBundle\Entity\Customer
- AppBundle\Entity\Ecommerce\CustomerGroup extends AWEcommerceBundle\Entity\CustomerGroup
- AppBundle\Entity\Ecommerce\Order extends AWEcommerceBundle\Entity\Order
- AppBundle\Entity\Ecommerce\OrderItem extends AWEcommerceBundle\Entity\OrderItem
- AppBundle\Entity\Ecommerce\ProductCustom extends AWEcommerceBundle\Entity\Product
- AppBundle\Entity\Ecommerce\ProductVariantCustom extends AWEcommerceBundle\Entity\ProductVariant
- AppBundle\Entity\Ecommerce\Promotion extends AWEcommerceBundle\Entity\Promotion
- AppBundle\Entity\Ecommerce\SponsorPromotion extends AWEcommerceBundle\Entity\SponsorPromotion
SQL
Run this queries to add the elements:
INSERT INTO modules (name, enabled, has_element, position, bundle) VALUES
('ecommerce', 1, 0, 0, 'AWEcommerceBundle'),
('productList', 1, 1, 30, 'AWEcommerceBundle'),
('ecommerceHeader', 1, 1, 32, 'AWEcommerceBundle')
routing.yml
aw_ec:
resource: "@AWEcommerceBundle/Controller/Admin"
type: annotation
prefix: /admin/ecommerce
config.yml
obligatoire:
aw_ec:
address:
for the shipping methods you have to define a service that uses the interface AWEcommerceBundle\Service\Shipping\ShippingInterface and as key use the same that returns the method "getShippingServiceName"
optionnel:
aw_ec:
address:
class: AppBundle\Entity\Ecommerce\Address
form: AppBundle\Form\Shipping\AddressType
available_shipping_services:
sendCloud: 'aw_studio.shipping.connector.send_cloud'
personalized: AWEcommerceBundle\Service\Shipping\PersonalizedShippingService
available_payment_methods:
stripe: 'aw.ec.payment_stripe_manager'
Based on sylius :
- SyliusProductBundle
- SyliusTaxationBundle
- SyliusAttributeBundle
Configuration reference
sylius_product:
driver: doctrine/orm
resources:
product:
classes:
model: Sylius\Component\Core\Model\Product
repository: Sylius\Bundle\CoreBundle\Doctrine\ORM\ProductRepository
form: Sylius\Bundle\CoreBundle\Form\Type\Product\ProductType
interface: Sylius\Component\Product\Model\ProductInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
factory: Sylius\Component\Product\Factory\ProductFactory
translation:
classes:
model: Sylius\Component\Core\Model\ProductTranslation
form: Sylius\Bundle\CoreBundle\Form\Type\Product\ProductTranslationType
interface: Sylius\Component\Product\Model\ProductTranslationInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
factory: Sylius\Component\Resource\Factory\Factory
product_variant:
classes:
model: Sylius\Component\Core\Model\ProductVariant
repository: Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductVariantRepository
form: Sylius\Bundle\CoreBundle\Form\Type\Product\ProductVariantType
interface: Sylius\Component\Product\Model\ProductVariantInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
factory: Sylius\Component\Product\Factory\ProductVariantFactory
product_option:
classes:
repository: Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductOptionRepository
model: Sylius\Component\Product\Model\ProductOption
interface: Sylius\Component\Product\Model\ProductOptionInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
factory: Sylius\Component\Resource\Factory\TranslatableFactory
form: Sylius\Bundle\ProductBundle\Form\Type\ProductOptionType
translation:
classes:
model: Sylius\Component\Product\Model\ProductOptionTranslation
interface: Sylius\Component\Product\Model\ProductOptionTranslationInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
factory: Sylius\Component\Resource\Factory\Factory
form: Sylius\Bundle\ProductBundle\Form\Type\ProductOptionTranslationType
product_option_value:
classes:
model: Sylius\Component\Product\Model\ProductOptionValue
interface: Sylius\Component\Product\Model\ProductOptionValueInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
factory: Sylius\Component\Resource\Factory\TranslatableFactory
form: Sylius\Bundle\ProductBundle\Form\Type\ProductOptionValueType
translation:
classes:
model: Sylius\Component\Product\Model\ProductOptionValueTranslation
interface: Sylius\Component\Product\Model\ProductOptionValueTranslationInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
factory: Sylius\Component\Resource\Factory\Factory
form: Sylius\Bundle\ProductBundle\Form\Type\ProductOptionValueTranslationType
product_association:
classes:
model: Sylius\Component\Product\Model\ProductAssociation
interface: Sylius\Component\Product\Model\ProductAssociationInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
factory: Sylius\Component\Resource\Factory\Factory
form: Sylius\Bundle\ProductBundle\Form\Type\ProductAssociationType
product_association_type:
classes:
model: Sylius\Component\Product\Model\ProductAssociationType
interface: Sylius\Component\Product\Model\ProductAssociationTypeInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
factory: Sylius\Component\Resource\Factory\Factory
form: Sylius\Bundle\ProductBundle\Form\Type\ProductAssociationTypeType
mw-cms/ecommerce-bundle 适用场景与选型建议
mw-cms/ecommerce-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Ecommerce bundle」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mw-cms/ecommerce-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mw-cms/ecommerce-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mw-cms/ecommerce-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Nevogate Payment Gateway SDK
2lenet/EasyAdminPlusBundle
The bundle for easy using json-rpc api on your project
Provide a way to secure accesses to all routes of an symfony application.
DMS Meetup API Bundle, enables Meetup API clients in services
Dealing with payments through the Egyptian payment gateway PayMob
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-12