In this new post on the PHP::Impact blog, Federico looks at some examples of directory setups for web apps that can help to make them both scalable and flexible.
Designing a modular and component-based directory structure for your Web applications can seem like an easy task. If your system is small, it may seem logical to go with the simplest design possible, but if there's anything more time consuming and complex than developing a new directory structure design, it's trying to redesign an existing system that wasn't developed with growth in mind.
He breaks it up into a few different topics that can be applied where needed to keep the application in check:
- Scalability and Flexibility
- Single Application
- Naming Conventions
- Proposed Structure