- Include the repository:
composer require mygento/module-shipment
Every extension should have three classes:
-
Client inherits \Mygento\Shipment\Model\AbstractClient
Class is used for communication with API. Exchanges with others through Service.
-
Carrier inherits \Mygento\Shipment\Model\AbstractCarrier
Class is used to work with Magento Shipping Rates
-
Service inherits \Mygento\Shipment\Model\AbstractService
Class is responsible for working with Magento and DB
The module is tested on magento version 2.4.x