Search by

xoops / moduletools

xoops

Core-bundled reusable services and compatibility module helpers for XOOPS 2.8.0+ modules

Package info

github.com/XOOPS/moduletools

Homepage

pkg:composer/xoops/moduletools

Statistics

Installs: 17

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.7.2 2026-11-18 07:21 UTC

This package is auto-updated.

Last update: 2026-11-18 07:27:16 UTC


README

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.

Documentation

Requirements

  • 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 drives XoopsTpl from PHP.

Development

composer install
composer qa      # phpcs → phpstan (level 6, generated XOOPS stubs) → rector dry-run → package checks → phpunit
composer test    # package checks + phpunit only

The 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.