# Laminas: MVC Framework for PHP

**URL:** <https://discourse.laminas.dev/t/laminas-mvc-framework-for-php/2115>\
**Category:** Components & MVC\
**Tags:** laminas-mvc, laminas-mvc-skeleton\
**Created:** [February 17, 2021, 10:16pm UTC](https://discourse.laminas.dev/t/laminas-mvc-framework-for-php/2115 "2021-02-17T22:16:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ixcoatl\_Perez](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/ixcoatl_perez/32/906_2.png) [@Ixcoatl\_Perez](https://discourse.laminas.dev/u/Ixcoatl_Perez)\
**Post date:** [February 17, 2021, 10:16pm UTC](https://discourse.laminas.dev/t/laminas-mvc-framework-for-php/2115/1 "2021-02-17T22:16:41Z")

</div>

Hi,

I’m new in Laminas and learning from the book: **Laminas: MVC Framework for PHP** , using the code at:

> **[divix1988/laminas\_examples](https://github.com/divix1988/laminas_examples/tree/master/Chapter%204)**
>
> master/Chapter%204

As a reference to cut and paste, since the kindle web reader does not allow to do it.

In Section **4.1 Initial Configuration** there’s an example on how to configure a default project.

After seting up the database, you have to configure two files: **config/global.php** and **config/local.php.dist**. The only place I can find something like that is at the **/myapp/config/autoload/** directory at github and the **local.php** is missing.

Am I undestanding something wrong either with the book or github?

Thank you in avance  
Ix

---

<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:** [February 17, 2021, 10:24pm UTC](https://discourse.laminas.dev/t/laminas-mvc-framework-for-php/2115/2 "2021-02-17T22:24:52Z")

</div>

Hello and welcome to our forums! 😃

> [@Ixcoatl\_Perez](#):
>
> …and the **local.php** is missing.

Please compare with the official skeleton application for laminas-mvc:

> **[GitHub - laminas/laminas-mvc-skeleton: Skeleton application for creating...](https://github.com/laminas/laminas-mvc-skeleton)**
>
> Skeleton application for creating laminas-mvc based projects. - GitHub - laminas/laminas-mvc-skeleton: Skeleton application for creating laminas-mvc based projects.

---

<div class="post-metadata">

**Author:** ![williamgall](https://avatars.discourse-cdn.com/v4/letter/w/b77776/32.png) [@williamgall](https://discourse.laminas.dev/u/williamgall)\
**Post date:** [February 23, 2021, 10:34pm UTC](https://discourse.laminas.dev/t/laminas-mvc-framework-for-php/2115/3 "2021-02-23T22:34:01Z")

</div>

local.php is always missing you have to create it. There is an example local.php.dist in the skeleton so you can either rename it to local.php or just create a new local.php that returns an array.  
hope that helps

---

<div class="post-metadata">

**Author:** ![Ixcoatl\_Perez](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/ixcoatl_perez/32/906_2.png) [@Ixcoatl\_Perez](https://discourse.laminas.dev/u/Ixcoatl_Perez)\
**Post date:** [February 25, 2021, 1:05am UTC](https://discourse.laminas.dev/t/laminas-mvc-framework-for-php/2115/4 "2021-02-25T01:05:59Z")

</div>

Thank you for your answers, that clarified the issue.

Now, it seems to be that the file name in production mode is **local.php.dist** and after executing the command **composer development-enable** it should change to **local.php**.

I can see that happening with the file **development.local.php.dist** by means of a link to it with the name **development.local.php** that appears after the command, but **local.php.dist** is pretty much ignored.

Is **development.local.php.dist** somewhat a replacement for **local.php.dist** or there is something else I need to know about it?

Thank you in davance.

---

<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:** [February 25, 2021, 7:34am UTC](https://discourse.laminas.dev/t/laminas-mvc-framework-for-php/2115/5 "2021-02-25T07:34:38Z")

</div>

Please have a look at the related component:

> **[laminas/laminas-development-mode](https://github.com/laminas/laminas-development-mode)**
>
> Laminas development mode script. Contribute to laminas/laminas-development-mode development by creating an account on GitHub.
