Modules
1 min read ยท last updated atModules, packages, libraries, namespaces, all of these terms refer to the concept of grouping code. Most programming languages have such a mechanism, but for many frameworks this is not enough. They provide higher-level abstractions that their users can hook into, to group and share functionality.
- Often closely coupled to the frameworks DI container
Implementations
- Symfony --- Flex & Bundles https://symfony.com/doc/current/bundles.html
- Laravel ---
extra.laravel
key incomposer.json
https://laravel.com/docs/packages - Spring --- annotations
@Enable*
https://www.baeldung.com/spring-enable-annotations - Rails --- Plugins: https://guides.rubyonrails.org/plugins.html
- Django --- Apps: https://docs.djangoproject.com/en/4.2/intro/reusable-apps/