Organizing the directory structure of my DDD-based web application?
I have started to look away from the normal MVC way of creating my web applications and have had a look at Domain Driven Design - DDD.

From having `Models` alone, I now have `Collections`, `Entities`, `DataMappers` & `Repositories` in my application to work with. Full-fledged separation and modularity for sure, but now my directory structure is nothing but a complete mess!

As I have never worked with a DDD-application in the past, I have little idea on how to organize my file structure.

**Would below be an appropriate directory structure?**  
Note: I am using PHP5, but I reckon this question to be close to language-agnostic. 


    /application
        /common
            /libraries
            /helpers
        /temp
            /cache
        /domain
            /collections
            /entities
            /datamappers
            /repositories
        /ui
            /controllers
            /view


Organizing the directory structure of my DDD-based web application?
===

I have started to look away from the normal MVC way of creating my web applications and have had a look at Domain Driven Design - DDD.

From having `Models` alone, I now have `Collections`, `Entities`, `DataMappers` & `Repositories` in my application to work with. Full-fledged separation and modularity for sure, but now my directory structure is nothing but a complete mess!

As I have never worked with a DDD-application in the past, I have little idea on how to organize my file structure.

**Would below be an appropriate directory structure?**  
Note: I am using PHP5, but I reckon this question to be close to language-agnostic. 


    /application
        /common
            /libraries
            /helpers
        /temp
            /cache
        /domain
            /collections
            /entities
            /datamappers
            /repositories
        /ui
            /controllers
            /view

