Thoughts on module directory structure
I've been working on a Zend Framework 2 module within a larger project that doesn't have that many PHP class files. Specifically, it has a controller, a mapper, an entity, a service and a form. As a result, the traditional Zend Framework 2 directory structure for the Account module looks like this (with class names in brackets): module/ Account/ config/ src/ Account/ Controller/ CaseController.php (Account\Controller\CaseController) Entity/ CaseEntity.php (Account\Entity\CaseEntity) Form/ CaseForm.php (Account\Form\CaseForm) Mapper/ CaseMapper.php (Account\Mapper\CaseMapper) Service/… continue reading.