# How to create module in module.config.php file?

**URL:** <https://discourse.laminas.dev/t/how-to-create-module-in-module-config-php-file/3860>\
**Category:** Mezzio\
**Tags:** mezzio\
**Created:** [March 4, 2025, 9:29am UTC](https://discourse.laminas.dev/t/how-to-create-module-in-module-config-php-file/3860 "2025-03-04T09:29:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eguvenc](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/eguvenc/32/265_2.png) [@eguvenc](https://discourse.laminas.dev/u/eguvenc)\
**Post date:** [March 4, 2025, 9:29am UTC](https://discourse.laminas.dev/t/how-to-create-module-in-module-config-php-file/3860/1 "2025-03-04T09:29:55Z")

</div>

I downloaded the mezzio latest version. I register modules using below the command. After that the creation i could not see the module name in my module.config.php. Is this normal ? Do i have to do it by mannually ?

`composer mezzio mezzio:module:register Authentication`

Expected behavior

config/modules.config.php

```auto
<?php
return [
    'Authentication',
];

```

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [March 4, 2025, 10:53am UTC](https://discourse.laminas.dev/t/how-to-create-module-in-module-config-php-file/3860/2 "2025-03-04T10:53:46Z")

</div>

> [@eguvenc](#):
>
> After that the creation i could not see the module name in my module.config.php. Is this normal ?

Correct, because Mezzio is not laminas-mvc and you can therefore not expect the same behaviour or the same file structure.  
The handling of modules is different, see:

> **[Quick Start - mezzio - Laminas Docs](https://docs.mezzio.dev/mezzio/v3/getting-started/quick-start/#modules)**
>
> PSR-15 Middleware in Minutes
