This is, a generalized example, of my MVC library structure. Nothing fancy, i wanted to keep it simple.
Library
- Configuration
- Modules (Database adapters etc)
- Core (Abstract controllers, routing functionality etc)
Application
- Model
- View
- Controllers
- Helpers
The benefits with this structure is that the library is not (which it shouldnt) dependent of the library. That means that you can copy the library for use with other projects.