ModuleTools is the XOOPS Core-bundled successor to the mTools helper-host module. It
provides reusable services under Xoops\ModuleTools\ without requiring an
installed or active module.
The package registers lazy aliases for the stable XoopsModules\Mtools\* API,
allowing existing modules to run on XOOPS 2.7.5+ and 2.8 without an mTools database row.
The separately distributed mTools module is only needed on XOOPS 2.7.0–2.7.4.
Experimental mTools\Lab\*, module administration pages, theme assets, and the
legacy mtools_setup table are intentionally not part of this library.
- Getting started — using the library from a module
- Migrating a module — replacing copied
Commonclasses / the mTools module - Compatibility policy — what stays, for how long
- PHP 8.2+, XOOPS 2.7.5+ or 2.8.0+ (
xoops/xmf^1.3.3,xoops/helpers^1.1). Smarty is Core's; the library ships no templates and only drivesXoopsTplfrom PHP.
composer install
composer qa # phpcs → phpstan (level 6, generated XOOPS stubs) → rector dry-run → package checks → phpunit
composer test # package checks + phpunit onlyThe consumer-module tests (*ConsumerTest) and the XMF 1.5 pagination parity test skip
automatically unless the package sits inside a XOOPS tree (xoops_lib/vendor/xoops/moduletools).
stubs/xoops-core.stub is generated from a real XOOPS 2.8 core so PHPStan can analyse the
library standalone; regenerate it when the core API the library touches changes.