flagbit/shopware-maintenance
Composer 安装命令:
composer require flagbit/shopware-maintenance
包简介
A Shopware extension for easy maintenance.
README 文档
README
Flagbit Shopware Maintenance
A Shopware extension for easy maintenance
Installation • Development • Troubleshooting
Installation
Step 1: Download the bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require flagbit/shopware-maintenance
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php return [ // ... Flagbit\Shopware\ShopwareMaintenance\ShopwareMaintenance::class => ['all' => true], ];
Usage
Install/Uninstall plugins
The file config/plugins.php defines which Shopware plugins should be enabled or disabled.
It is divided in different groups core, third_party, agency and project, which are installed in exactly this order.
Example
# config/plugins.php <?php declare(strict_types=1); # be awere those are sorted lists because of plugin dependencies may occur return [ 'core' => [ # original plugins from shopware 'SwagMarkets' => false, # disabled 'SwagPayPal' => true, # enabled 'SwagPlatformDemoData' => false, # disabled ], 'third_party' => [ # plugins from other vendors 'CoeWishlistSw6' => ture, # enabled 'DreiscSeoPro' => false, # disabled 'GoogleConsentV2' => true, # enabled 'IesCommissionField6' => true, # enabled ], 'agency' => [ # plugins from flagbit for company-wide usage 'FlagbitGoogleConsentMode' => true, # enabled ], 'project' => [ # plugins for this project 'CustomerStoreApi' => false, # disabled 'CustomerWishlistCommissionField' => true, # enabled ], ];
Groups
Core
In the group core should be the plugins from shopware itself. Those mostly start with Swag.
Third-Party
The group third_party is for plugin of other agencies which we get from the store.
Agency
Plugins which are from flagbit but aren't for specific for this project and can be used in other projects as well, it should be in agency.
Project
The group project is for plugins which are specifically developed for this project.
Define Config
The file config/config.yaml defines Shopware plugin configuration values to be set.
Example
Use global for all SalesChannels. Or use the name from one SalesChannel translation to update the config.
We do not use the uuid from the SalesChannel because this can be different from envoirment to envoirment.
# config/config.yaml "global": "core.listing.productsPerPage": 48 "Store Name": "core.listing.productsPerPage": 48 "core.listing.allowBuyInListing": false "core.listing.showReview": false "Headless": "core.listing.productsPerPage": 48
Commands
bin/console config:sync # synchronizes configuration values as defined in config/config.yaml bin/console plugin:refresh # ensure plugins classes are loaded before plugin:sync execution bin/console plugin:sync # synchronizes plugin enable/disable status as defined in config/plugins.php
Troubleshooting
Supported with ❤️ by Flagbit GmbH & Co. KG
flagbit/shopware-maintenance 适用场景与选型建议
flagbit/shopware-maintenance 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 30.39k 次下载、GitHub Stars 达 19, 最近一次更新时间为 2022 年 01 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 flagbit/shopware-maintenance 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 flagbit/shopware-maintenance 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 30.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-28