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
- Requirements
- Installation
- Developer setup
- Common workflows
- Release notes / upgrades
- License
Documentation
- User documentation: Shopware Migration docs
- Developer documentation: Migration Assistant developer docs
Shopware 5: Migration Connector
When migrating from Shopware 5, you can migrate locally or connect via the “Migration Connector” plugin from the Shopware Store:
- Migration Connector: Shopware Store listing
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 herecomposer.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:
- Go to Actions > Acceptance workflow
- Click Run workflow
- Check Update snapshots
- Run the workflow and wait for completion
- Download the
visual-snapshots-trunkartifact - Extract and replace
tests/acceptance/snapshots/with the downloaded files - 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
- Changelog:
CHANGELOG.md - Breaking changes:
UPGRADE.md
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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 41.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-17