you can use php directory iterator https://php.net/manual/en/class.directoryiterator.php wich offers plenty of nice method. and build the list the way you want.
Maybe a bit complicated if you're having plenty of modules, but quiet simple for scanning a basic mvc application controller directory...