How to Get Extension Version in Magento 2?

In this post, you will show how to get the version of any extension/module in Magento 2.

You can use you can use following code snippet:

$versionInfo = $this->_objectManager->get('Magento\Framework\Module\ModuleList')->getOne('Hello_World');
echo "<pre>";
echo "</pre>";

Here, Hello is vendor name and World is module name.

I hope you like this post, Please feel free to comment below, suggestion and problems!

(Visited 9 times, 1 visits today)
Chandra Kumar

Hello World, I am Chandra Kumar from New Delhi, India. I am professionally developer, programmer and blogger. I am the founder of

0 Comment

Leave a Comment

Your email address will not be published. Required fields are marked *