Download the PHP package astgroup/laravel-amazon-mws without Composer
On this page you can find all versions of the php package astgroup/laravel-amazon-mws. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download astgroup/laravel-amazon-mws
More information about astgroup/laravel-amazon-mws
Files in astgroup/laravel-amazon-mws
Package laravel-amazon-mws
Short Description A minimal service provider to set up and use the MWS API PHP library in Laravel 5.*
License GPL-3.0-only
Informations about the package laravel-amazon-mws
astgroup/laravel-amazon-mws
A minimal service provider to set up and use the Amazon MWS API PHP library in Laravel 5.*
Forked from https://github.com/CPIGroup/phpAmazonMWS (based on 1.4.2)
Version: 0.1.16
How it works - Usage Example
See how this all comes together below.
Setup
Step 1: Adding the dependency to composer.json
Add this to your composer.json in your Laravel folder. Note: Adding this dependency will automatically setup "anlutro/l4-settings" too.
Step 3: From the command-line run
This will publish the LaravelSettings config file to the config directory, which will give you control over which storage engine to use as well as some storage-specific settings.
Step 4: Add your settings to the LaravelSettings Settings Facade in the 'boot' method of the MwsServiceProvider.php file like this
You can then reference them within your app and run Mws API methods like this - Be sure to specify the 'storename' that you set in the 'boot' method as seen below when initialising Objects:
The use of the Settings facade allows you to change your settings on the fly, or in the case of multiple users, replace settings with whatever user needs to make an API call at the time. For example, the logged in user.
Good to go!