Plugin Replacer allows administrators to upload a Moodle plugin ZIP file and either:
- Install it (if not currently installed), or
- Replace the existing installed version.
The plugin extracts the ZIP to a temporary directory, validates the plugin metadata (`version.php`), shows a file difference preview, and then copies the plugin into the correct Moodle directory. After replacement or installation, it redirects to Moodle's standard upgrade page to complete the process.
This tool is intended for controlled administrative environments where the default Moodle plugin installer is unavailable or restricted.