How to get loaded module names

please let me know how it is possible to obtain names of loaded modules in zf3.

I never tried this myself, but I think you can do it like this:

$moduleManager = $serviceManager->get('ModuleManager');
$loadedModules = $moduleManager->getLoadedModules();
1 Like