Skip to content

1. Why a XOOPS Rector package?

github-actions[bot] edited this page Jun 8, 2026 · 2 revisions

1. Why a XOOPS Rector package?

Modernising 200+ legacy XOOPS modules by hand — or with fragile find/replace scripts — is slow and error-prone. Rector rewrites code on the AST (abstract syntax tree), so it understands structure: it won't corrupt a string, a comment, or a language constant the way a regex can. This package bundles the XOOPS-specific transforms (DB API, removed PHP functions, the $xoopsDB wrapper, MyTextSanitizer, Smarty PHP API, …) as proper, tested Rector rules so any module can be modernised the same way, twice, and safely.

PHP-only. Rector parses PHP. Smarty template (.tpl) migration is handled separately by the XOOPS upgrade preflight scanner, not here.

Clone this wiki locally