swag/migration-assistant 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

swag/migration-assistant

Composer 安装命令:

composer require swag/migration-assistant

包简介

Migration plugin for shopware/platform

README 文档

README

The Shopware Migration Assistant establishes a connection between a data source and Shopware 6 and guides you step by step through the migration process.

It supports migrating numerous datasets (products, manufacturers, customers, …) and updating them at any time. Before a migration starts, the assistant runs a data check and supports creating “mappings” to resolve missing/unassignable data (for example: assign missing manufacturers to a default manufacturer) to avoid data loss.

Overview

Documentation

Shopware 5: Migration Connector

When migrating from Shopware 5, you can migrate locally or connect via the “Migration Connector” plugin from the Shopware Store:

The connector provides API endpoints so Shopware 6 can establish a secure connection to the Shopware 5 shop. Keep it enabled as long as you need updates/delta migrations.

Requirements

  • Shopware: shopware/core (see version here composer.json)
  • Node.js / npm: required for administration and JS tooling (lint/unit/acceptance)
  • MySQL client: required for importing Shopware 5 fixture data (optional)

Installation (Shopware 6 project)

Expected path (relative to your Shopware 6 project root) for the plugin:

custom/plugins/SwagMigrationAssistant

From the shopware root directory:

bin/console plugin:refresh
bin/console plugin:install -a -c SwagMigrationAssistant

Alternatively, use the provided shortcut:

composer setup

Developer setup

  • Install JS dependencies (administration + Jest + Playwright project):
composer npm:init
  • Install git pre-commit hook (optional):
./bin/setup.sh

Common workflows

Linting & formatting

Run everything (PHP + admin):

composer lint

Run individual parts:

composer ecs
composer phpstan
composer phpunit
composer admin:lint # eslint
composer admin:format # prettier

Tests

  • PHPUnit:
composer phpunit
  • Administration unit tests (Jest):
composer admin:unit
  • Acceptance tests (Playwright):
composer admin:acceptance

More details (including Playwright install steps) can be found in the acceptance tests README.

Updating visual regression snapshots

Visual regression tests compare screenshots against baseline images. When UI changes are intentional, update the snapshots via CI to ensure consistency across environments:

  1. Go to Actions > Acceptance workflow
  2. Click Run workflow
  3. Check Update snapshots
  4. Run the workflow and wait for completion
  5. Download the visual-snapshots-trunk artifact
  6. Extract and replace tests/acceptance/snapshots/ with the downloaded files
  7. Commit the updated snapshots to your branch

Import Shopware 5 fixture database (optional)

This imports tests/_fixtures/database/shopware55.sql into the database configured in your Shopware root .env via DATABASE_URL.

composer install5db

Release notes / upgrades

License

MIT See LICENSE.

swag/migration-assistant 适用场景与选型建议

swag/migration-assistant 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 41.2k 次下载、GitHub Stars 达 20, 最近一次更新时间为 2023 年 04 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 swag/migration-assistant 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 swag/migration-assistant 我们能提供哪些服务?
定制开发 / 二次开发

基于 swag/migration-assistant 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 20
  • Watchers: 30
  • Forks: 26
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-17