定制 kommandhub/foundation-sw 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kommandhub/foundation-sw

Composer 安装命令:

composer require kommandhub/foundation-sw

包简介

Kommandhub Foundation plugin for Shopware

README 文档

README

License: Proprietary Shopware

Kommandhub Foundation Logo

A shared Shopware 6 foundation plugin that provides reusable installer infrastructure for Kommandhub extensions. It keeps country, state, currency, and language data inside providers and installs them only when explicitly requested by the merchant.

Developed with ❤️ by Kommandhub Limited

Table of Contents

Features

  • Provider-based installation for countries, states, currencies, and languages
  • Idempotent installers that avoid duplicates by natural keys
  • Dedicated Shopware Admin module under the Plugins settings group
  • Extensible architecture for adding new providers without changing installer flow
  • Admin translations for en-GB, de-DE, and fr-FR

Supported Data

The plugin currently focuses on African base data:

  • African countries
  • Country states/provinces
  • Country currencies
  • African languages/locales

Requirements

  • Shopware: ~6.6.0 or ~6.7.0
  • PHP: ^8.2 (inside Docker) / ^8.4 (local)
  • Composer

Installation

Via Composer (Recommended)

composer require kommandhub/foundation-sw
bin/console plugin:refresh
bin/console plugin:install --activate KommandhubFoundationSW
bin/console cache:clear

Manual Installation (GitHub Upload)

  1. Download the ZIP from the repository.

  2. Ensure the plugin structure is preserved:

    KommandhubFoundationSW.zip
    ├── src/
    ├── composer.json
    └── README.md
    
  3. Upload it via:

    Administration → Extensions → My Extensions → Upload Extension

  4. Install and activate the plugin.

Usage

Open the administration page:

Administration → Settings → Plugins → Africa Base Data Installer

Then:

  1. Select the countries or languages you want to install.
  2. Click Install.
  3. The plugin inserts the selected base data into the appropriate Shopware tables.

Directory Structure

The plugin uses a feature-based structure:

KommandhubFoundationSW/
├── src/
│   ├── Controller/
│   │   └── Api/
│   │       └── Installer/
│   ├── Service/
│   │   └── Installers/
│   │       ├── Address/
│   │       │   └── Country/
│   │       └── Language/
│   └── Resources/
│       ├── config/
│       └── app/administration/
└── tests/
    └── Unit/

What each area is for

  • Controller/: API endpoints used by the admin UI.
  • Service/Installers/: provider registries and installer logic.
  • Resources/config/: service wiring, routes, and plugin configuration.
  • Resources/app/administration/: admin components, module, and snippets.
  • tests/: unit tests for installer behavior.

Development & Testing

To keep the environment consistent, run development tools inside the project Docker container.

1. Setup Development Environment

cd custom/plugins/KommandhubFoundationSW
make up
make shell
make prepare

2. Run Development Commands

Run PHPUnit Tests

make test

Run Tests with Coverage

make test-coverage

Static Analysis (PHPStan)

make analyse

Code Style (PHP-CS-Fixer)

make cs
make cs-fix

Compatibility

Plugin Version Shopware Version
^1.0 6.6
^1.0 6.7

Troubleshooting

Installer page not visible?

bin/console plugin:refresh
bin/console cache:clear

Changes not reflected in Administration?

  • Rebuild the administration assets.
  • Clear the cache.
  • Refresh the browser.

No data appears after installation?

  • Ensure the selected providers were installed.
  • Confirm the provider data exists in the plugin source.
  • Check the logs in var/log/.

Support

For support:

License

This project is licensed under the Proprietary license. See the composer.json file for details.

统计信息

  • 总下载量: 60
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固