Skip to content

Instantly share code, notes, and snippets.

@tvlooy
Last active December 27, 2015 18:29
Show Gist options
  • Save tvlooy/7370063 to your computer and use it in GitHub Desktop.
Save tvlooy/7370063 to your computer and use it in GitHub Desktop.
Get list of installed Magento modules
<?php
require 'app/Mage.php';
Mage::app();
$modules = Mage::getConfig()->getNode('modules')->children();
foreach ($modules as $moduleName => $moduleSettings) {
echo '[' . ($moduleSettings->is('active') ? 'active' : 'disabled') . "]\t";
echo $moduleName;
echo "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment