@samdark - Here’s the thing, people do create software for others, installable software, which must run a requirements checker before allowing people to install, or even in the installer.
For example, in our products installer, we’re using it like:
require_once INSTALLER_PATH . '/inc/RequirementChecker.php';
$checker = new RequirementChecker();
$result = $checker->checkYii()->check([
'name' => 'BCMath or GMP',
'mandatory' => true,
'condition' => extension_loaded('bcmath') || extension_loaded('gmp'),
'by' => '<a href="http://www.yiiframework.com">Application</a>',
'memo' => 'BCMath or GMP is required.',
So it helps us since it checks the requirements by the framework but also allows us to add our own requirements depending on our products.
P.S: Formatting code in this forum is terrible difficult…
I think you should keep it.