waaseyaa/migrate-source-wordpress 问题修复 & 功能扩展

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

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

waaseyaa/migrate-source-wordpress

最新稳定版本:v0.1.0-alpha.1

Composer 安装命令:

composer require waaseyaa/migrate-source-wordpress

包简介

WordPress (WXR) source reader for the Waaseyaa migration platform

README 文档

README

Migrate your WordPress site to Waaseyaa.

First-party WordPress source reader for the Waaseyaa migration platform. Imports a WordPress site — posts, pages, users, taxonomies, attachments, comments — from a WXR (WordPress eXtended RSS) export into a Waaseyaa-powered application.

30-second quick start

composer require waaseyaa/migrate-source-wordpress

In your application's migration wiring:

use Waaseyaa\Migrate\Source\WordPress\Migration\WpUsersToAccounts;
use Waaseyaa\Migrate\Source\WordPress\Migration\WpPostsToArticles;
use Waaseyaa\Migrate\Source\WordPress\Wxr\WxrReader;

$reader = new WxrReader('/path/to/wp-export.xml');

return [
    (new WpUsersToAccounts($reader, $yourAccountDestination))->definition(),
    (new WpPostsToArticles($reader, $yourArticleDestination))->definition(),
    // …users → terms → media → posts → comments, per FR-024
];

Then:

bin/waaseyaa import:run-all

The runner walks the dependency chain — users → terms → media → posts → comments — and writes idempotently to your destination. See the operator guide for the full step-by-step.

What ships

  • WxrReader — streaming WXR XML parser (WXR 1.0 / 1.1 / 1.2) with skip-with-warning recovery.
  • Five source plugins: WordPressUserSource, WordPressTaxonomySource, WordPressMediaSource, WordPressPostSource, WordPressCommentSource.
  • Three process plugins: WordPressShortcodeStrip (with custom rewriter hooks), WordPressOembedExpand (opt-in remote resolution for YouTube/Vimeo/Twitter/Instagram), WordPressMediaRewriteUrl (CDN host allowlist).
  • Five default migration factories: WpUsersToAccounts (discards WP passwords + forces reset), WpTermsToTaxonomy, WpMediaToEntities, WpPostsToArticles (renameable example), WpCommentsToEngagement.
  • MediaCopier — idempotent local + HTTP media copy primitive with sha256 verification.

Full inventory: public-surface-map.md.

Compatibility

waaseyaa/migrate-source-wordpress waaseyaa/migration substrate PHP
0.1.x ^0.1.0-alpha.179 >= 8.5

Verifying a clean install

docker run --rm -it php:8.5-cli bash
apt-get update && apt-get install -y git unzip libxml2-dev
docker-php-ext-install xml xmlreader
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
mkdir /tmp/smoke && cd /tmp/smoke
composer init -q --name=test/smoke --no-interaction
composer require waaseyaa/migrate-source-wordpress
php -r "require 'vendor/autoload.php'; echo class_exists('Waaseyaa\\\\Migrate\\\\Source\\\\WordPress\\\\Wxr\\\\WxrReader') ? 'OK' : 'FAIL';"

Documentation

Mission

This package implements M-005 of the Waaseyaa framework, the first first-party source reader for the migration substrate (ADR 012a).

License

GPL-2.0-or-later.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固