Convert old Joomla Extensions

Submitted On: 06 Dec 2025
File Size 8
Downloads: 0
File Version: 1.0

This script looks for old classes such as JFactory, JText, JRoute etc and replaces them with their modern equivalents, adding 'use' statements as necessary.

Usage

Test on a single file first

 php convert.php --file=components/com_remository/src/Model/FileModel.php --dry-run

When satisfied, run for real

 php convert.php --file=components/com_remository/src/Model/FileModel.php

Process entire directory

 php convert.php --dir=components/com_remository --dry-run
 php convert.php --dir=components/com_remository

Built in collaboration with Claude.AI

File Rating (0/0)
Log in to cast your vote
Be the first to comment! Please sign in or register.
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.