In this chapter, you have learned of the concept modules in Zend Framework 3. A module is an autonomous and reusable unit of your application. You may create a new module when your website becomes large and when the functionality has very few dependencies on other parts of your application.
Every ZF3 module has an entry point class called
Module. You may use that class to register an event listener.
Event listeners are useful, for example, when you want to change the default layout template for the entire module,
or to tweak the default content of a web page.
If you are developing a module that you want to make publicly available for use in other projects, you can register your module on Packagist.org catalogue and install it with Composer as a third-party package.