Download the PHP package jinhuaxiao/mws-laravel without Composer
On this page you can find all versions of the php package jinhuaxiao/mws-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jinhuaxiao/mws-laravel
More information about jinhuaxiao/mws-laravel
Files in jinhuaxiao/mws-laravel
Package mws-laravel
Short Description something new A minimal service provider to set up and use the MWS API PHP library in Laravel 5.4
License MIT
Informations about the package mws-laravel
jinhuaxiao/mws-laravel
A minimal service provider to set up and use the Amazon MWS API PHP library in Laravel 5.4
Forked from https://github.com/CPIGroup/phpAmazonMWS
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 2: Register the service providers and alias
Register the service providers in by inserting into the array
Add the following alias to your 'aliases' array
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!
All versions of mws-laravel with dependencies
illuminate/support Version 5.*
anlutro/l4-settings Version 0.4.8