---
title: "How Magento 2 identify module"
url: "https://dolphinwebsolution.com/how-magento-2-identify-module"
date: "2020-10-10T09:41:45+05:30"
modified: "2023-08-28T06:08:55+05:30"
author:
  name: "Payal Patel"
categories:
  - "Magento"
tags:
  - "Magento 2.x"
  - "Magento developers"
word_count: 294
reading_time: "2 min read"
summary: "A module is a logical group – that is, a directory containing blocks, controllers, helpers, models – that are related to a specific business feature.
The purpose of a module is to provide spec..."
description: "Magento 2 identify module is a logical group – that is, a directory containing blocks, controllers, helpers, models – that are related to a specific busi..."
keywords: "Magento 2 identify module,Module identifies in Magento 2,identify Magento 2 module,identify module, Magento 2.x, Magento developers"
language: "en"
schema_type: "Article"
related_posts:
  - title: "Migration to Magento 2:  Why is it so essential?"
    url: "https://dolphinwebsolution.com/migrate-to-magento-2-why-is-it-so-essential"
  - title: "Magento 2 Add Pagination in Custom Collection"
    url: "https://dolphinwebsolution.com/magento-2-add-pagination-in-custom-collection-of"
  - title: "Magento 2 SMTP for Gmail not working"
    url: "https://dolphinwebsolution.com/magento-2-smtp-for-gmail-not-working"
---

# How Magento 2 identify module

_Published: October 10, 2020_  
_Author: Payal Patel_  

![](https://dolphinwebsolution.com/wp-content/uploads/2023/02/Identify-module-1024x512.jpg)

> A module is a logical group – that is, a directory containing blocks, controllers, helpers, models – that are related to a specific business feature. The purpose of a module is to provide specific product features by implementing new functionality or extending the functionality of other modules. Each module is designed to function independently, so the inclusion or exclusion of a particular module does not typically affect the functionality of other modules.

A module is a logical group – that is, a directory containing blocks, controllers, helpers, models – that are related to a specific business feature.

The purpose of a module is to provide specific product features by implementing new functionality or extending other modules’ functionality.

Each module is designed to function independently, so the inclusion or exclusion of a particular module does not typically affect other modules’ functionality.

## Two possible locations to magento 2 identify module
**app/code:** If you build a module for a specific project, it is best to

choose the app/code folder and commit to the project’s repository.

**vendor/<your\_vendor>/module-somethingname:** If you build a [Magento 2 extension](https://dolphinwebsolution.com/shop/magento-2-extensions.html) to be reused, it is better to use composer to create it, and put your module in the vendor/<your\_vendor>/module-something folder.

**There are two required files:**

- registration.php
- module.xml

### **Step 1:** The **registration.php** file inside the *app/code/Dolphin* with the following code.

```
<?php

use Magento\Framework\Component\ComponentRegistrar;

ComponentRegistrar::register(
ComponentRegistrar::MODULE,
'Dolphin_MyModule',
__DIR__
);
```

### **Step 2:** The **module.xml** file inside the *app/code/Dolphin/etc* with the following code.

```
<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Dolphin_MyModule" />
</config>
```

### **Step 3:** Run Magento Upgrade and Cache Clean command.

```
php bin/magento setup:upgrade
php bin/magento cache:clean
```

Now, go to **app/etc folder** open **config.php** file, and you can see your **Dolphin\_MyModule**.

We hope our technical blog which looking is very effective for you. If any questions, please feel free to leave a comment below.

In the next tutorial, you will help [How to create a basic module in Magento 2](https://dolphinwebsolution.com/how-to-create-module-in-magento-2).


---

_View the original post at: [https://dolphinwebsolution.com/how-magento-2-identify-module](https://dolphinwebsolution.com/how-magento-2-identify-module)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-08-26 06:14:06 UTC_  
