Moodle Upgrade & Migration Tool

•
20
•

Streamlines Moodle plugin upgrades and migrations by identifying deprecated APIs, ensuring PHP 8.4 compatibility, and implementing modern architectural patterns.

This skill assists Moodle developers in the complex process of modernizing legacy code for current and upcoming releases, including Moodle 4.x and the 5.x roadmap. It provides precise guidance on replacing deprecated functions (like print_error and add_to_log), migrating to the Hooks API, adopting namespaced external APIs, and meeting strict PHP 8.1–8.4 requirements. Whether you are preparing a plugin for the official Moodle Plugins Directory or performing a major version jump, this skill ensures your code follows Moodle's modern standards, including the new /public document root and Routing Engine conventions.

主な機能

01Support for Moodle 5.1+ migrations including the /public doc-root and Routing Engine updates.
02Guidance on implementing the Hooks API (Moodle 4.4+) as a replacement for legacy magic callbacks.
0320 GitHub stars
04Standardized patterns for db/upgrade.php scripts and cumulative upgrade.txt documentation.
05Automated deprecation mapping for Moodle core APIs from version 2.7 through 5.x.
06Comprehensive PHP 8.1–8.4 compatibility checks including nullable parameters and dynamic property fixes.

ユースケース

01Resolving 'Deprecated API' rejections during Moodle Plugins Directory submission reviews.
02Ensuring custom Moodle codebases are stable for PHP 8.3 and 8.4 server environment upgrades.
03Modernizing a Moodle 3.x plugin to support Moodle 4.5 and the upcoming 5.x series.