Every project is a code (one line, two, one hundred, and so on). It is easy to get confused in a project with no code structure. But there is a solution – modules.
A module is a part of the code that is responsible for certain functionality.
Modules help us or our team write code with small parts that can be connected or can be used by another small part of the code. This approach is such a good thing to get a consistent, clear, and debuggable structure for the project.
The name of the module must consist of two parts: vendor name and module name:
Scandiwebas a vendor of a module. It is a good practice to add the
composer.jsonfile to a shared module.
When developing a module we should put its source according to the conventional folder structure: