nauhyuh/flarum-migration-tool 问题修复 & 功能扩展

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

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

nauhyuh/flarum-migration-tool

最新稳定版本:2.4.1

Composer 安装命令:

composer require nauhyuh/flarum-migration-tool

包简介

Complete migration tool with admin UI for easy Flarum server transfer. Backup, restore, and migrate your forum with just a few clicks.

README 文档

README

A professional, safety-first migration and backup extension for Flarum. Transfer your forum between servers or create full-system backups with ease, all through a beautiful real-time Admin UI.

Version License Flarum

✨ Key Features

  • 1-Click Full Backup: Zip your entire Flarum site, including database, settings, and files.
  • Safety-First Migration: Existing server files are renamed with an _old suffix during migration. Data is never lost until you verify and click "Cleanup".
  • Real-time Progress Bar: Track every step of your backup or migration with detailed status labels and percentage updates.
  • Smart Pre-filling: Automatically detects your current server's URL and database credentials to save time during migrations.
  • Flexible Options:
    • Include/Exclude vendor directory.
    • Include/Exclude user uploads (avatars, attachments).
    • Include/Exclude config.php (sensitive credentials) in backups.
  • Robust DB Engine: Pure PHP database export/import engine designed for maximum compatibility across different hosting environments.
  • Post-Migration Cleanup: Dedicated tool to permanently remove old files once you've confirmed your new site is working perfectly.
  • Command Line Support: Advanced users can still perform migrations via php flarum migration:migrate.

🛠 Installation

Install the extension via Composer:

composer require nauhyuh/flarum-migration-tool

After installation, enable the extension in your Flarum Admin dashboard.

🚀 How to Migrate

Step 1: Create a Backup on Source Server

  1. Go to Admin > Migration Tool > Backup tab.
  2. Select your desired options (Exclude vendor for smaller files).
  3. Click Create Backup. Watch the real-time progress bar.
  4. Once finished, click Download to save the ZIP to your computer.

Step 2: Restore on Destination Server

  1. Install this extension on your new Flarum site.
  2. Go to Admin > Migration Tool > Migrate tab.
  3. Upload your ZIP backup file.
  4. The tool will auto-fill your current server's DB details. Update if you are migrating to a different database.
  5. Click Start Migration. The tool will:
    • Backup existing files to *_old.
    • Replace the database.
    • Restore your files.
  6. Check your site. If everything is perfect, click Cleanup Old Files to delete the _old items.

📋 Requirements

  • Flarum v1.0+
  • PHP zip extension enabled.
  • Write permissions for storage and root directories.
  • MySQL/MariaDB database.

🛡 Security & Safety

  • No Data Deletion: Migrations use high-level safety renaming. Your old files are kept safe as _old until you choose to delete them.
  • Cleanup Tool: Ensures no sensitive _old files (like config.php_old) are left on your server publicly.
  • Admin Only: All migration routes are strictly protected by Flarum's admin authorization.

📄 License

This project is licensed under the MIT License.

Crafted with ❤️ by Nauhyuh

nauhyuh/flarum-migration-tool 适用场景与选型建议

nauhyuh/flarum-migration-tool 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 106 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 01 月 30 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「extension」 「migration」 「backup」 「transfer」 「restore」 「flarum」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-30