ticaje / m2-ae-consumer
Module that defines Aliexpress API business rules and provides access to it
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ^7.0
- league/oauth2-client: ^2.4
- league/tactician: ^1.0
- ticaje/m2-ae-dic: ^1.0
Requires (Dev)
- allure-framework/allure-phpunit: ~1.2.0
- friendsofphp/php-cs-fixer: ~2.14.0
- phpmd/phpmd: @stable
- phpunit/phpunit: ^7
- squizlabs/php_codesniffer: ~3.4.0
This package is auto-updated.
Last update: 2024-10-20 19:34:48 UTC
README
This extension defines Aliexpress API business rules and provides access to it
Preface
This extension uses some of Magento 2 Base Extensions.
I have decided to include some AE specific business policies into this extension for the sake of simplicity so Magento developers are not forced to tweak too much on business concerns when implementing their M2 module.
We must keep in mind that AE Use Cases implementation at times turns out to be very quite messy hence the specification/exploding of business-specific components like this one.
The most representative Use Case is posting a product to Aliexpress platform, it so happens that a series of steps must be taken when accomplishing a product post onto that platform, please take a look at specs:
I must admit that this goes not in favour of other consumers outside Magento's world.
So I promise to deliver a framework agnostic middleware in charge of abstracting use cases's data preparation since it's a specific Aliexpress's Domain concern given the fact that this platform implements very limited policies when it comes to defining Use Cases.
The drawbacks of doing this is that a DC framework must be used in order to manage deps-orchestration since we have implemented D.I.P and Dependency Rules approach on these matters.
Installation
You can install this package using composer(the only way i recommend)
composer require ticaje/m2-ae-consumer
Features
This module abstracts away the matters of passing an AE-compliant request to its API.
The consumers of this module they only have to focus on sending the proper data to this middleware and it will be taking care of performing request/response tasks and get back with an answer to consumers.
Two components need to be sent, credentials and data to send to AE platform(regardless the use case). An example will be posted here so the consumer can come to grips of how this module can be used.
Credits
License
The GNU General Public License (GPLv3). Please see License File for more information.