yireo-training / magento2-example-dealers
Magento 2 module demonstrating a MVC-structure for displaying dealers
Installs: 8
Dependents: 3
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:magento2-module
pkg:composer/yireo-training/magento2-example-dealers
Requires
- php: >=7.3.0
 - magento/framework: ^101.0|^102.0|^103.0
 - psr/log: ^1.1|^2.0|^3.0
 
Requires (Dev)
- composer/composer: *@dev
 - phpunit/phpunit: *
 
Suggests
- yireo/magento2-example-dealers-storefront: *
 
This package is not auto-updated.
Last update: 2025-10-26 14:36:31 UTC
README
This module demonstrates the usage of MVC within a module, through the concept of having dealer entries in the frontend:
Technical layout
- Module 
Yireo_ExampleDealers- API repository interface
 - API model interface
 - Repository class
 - Model class
 - ResourceModel class
 - Collection class
 
 - Module 
Yireo_ExampleDealersFrontend- Controllers & routing
 - ViewModel
 - XML layout
 - PHTML templating
 
 - Module 
Yireo_ExampleDealersAdminhtml(@todo)- UiComponent grid
 - UiComponent form
 
 - Module 
Yireo_ExampleDealersGraphql(@todo)- GraphQL resource
 - Dummy React component
 
 - Module 
Yireo_ExampleDealersCqrs(@todo)- Replacement repository with Queries and Commands
 
 
Specific notes
- The repository has more methods than a regular repository, to help other developers accomplish specific tasks quicker: 
getAll(),getItems(),getSearchCriteriaBuilder(); - A 
DealerSearchCriteriaBuilderthat has knowledge of the database structure, without requiring you to have that same knowledge; - No more Blocks, because ViewModels are cooler;
 - No more Setup-scripts, because 
db_schema.xmlis easier;