laravelamazonmws / laravelamazonmws
:description
Requires
- illuminate/support: ~5
- spatie/array-to-xml: ^2.7
Requires (Dev)
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~6.0
README
A Laravel package to connect to Amazon's Merchant Web Services (MWS).
Currently optimizing and testing with all MWS's actions.
The connect function will provide you a data array expected by the MWS's action passed as paramater.
Please, take a look to Amazon Web Services (AWS) documentation : https://docs.developer.amazonservices.com/en_FR/dev_guide/DG_IfNew.html
This package use the package ArrayToXMl from spatie : https://github.com/spatie/array-to-xml
Installation
Via Composer
$ composer require laravelamazonmws/laravelamazonmws
Usage
$country = 'FR'; $config = [ 'Marketplace_Id' => LaravelAmazonMws::getMarketPlaceId($country), 'Marketplace_Host' => LaravelAmazonMws::getMarketPlaceHost($country), 'Seller_Id' => env('YOUR_SELLER_ID'), 'Access_Key_ID' => env('YOUR_ACCESS_KEY_ID'), 'Secret_Access_Key' => env('YOUR_SECRET_ACCESS_KEY'), ]; $action = 'GetFulfillmentOrder'; $query = [ //Add the request paramaters by Action, take a look on Amazon documentation 'SellerFulfillmentOrderId' => 895, ]; $new_mws = new LaravelAmazonMws($config); $response = $new_mws->connect($action, $query);
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email b.delaloi@gmail.com instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.