Download the PHP package looxis/laravel-amazon-mws without Composer

On this page you can find all versions of the php package looxis/laravel-amazon-mws. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-amazon-mws

Laravel Amazon MWS

Latest Version on Packagist Build Status StyleCI Scrutinizer Code Quality

Simple Amazon Marketplace Web Service API Package for Laravel

This package is under development. Currently we have only implemented the endpoints we are using. Feel free to add the endpoints you need (contribute). A List of all available endpoints you can see under the endpoint road map.

🚨 Amazon Introduced a new Selling Partner API A modernized suite of REST APIs utilizing standards. Github Docs The laravel-amazon-mws package provides only methods for the Amazon MWS service. We will add a laravel package for the SP-Api next year (2021).

Contents

Link to the Official Amazon MWS Documentation

Installation

This package requires PHP 7.3 and Laravel 8.0 or higher. For older laravel versions install the latest 0.1.x version.

Require the package using composer:

The package will automatically register itself.

Add your Environment Variables for MWS to your .env File. The variable names are listed in the amazon-mws.php config file.

Configuration

To successfully authenticate with the Amazon Marketplace Web Service you need to add the Environment variables to your .env File. The variable names are listed in the amazon-mws.php config file. Also you can set a default marketplace.

You can optionally publish the configuration with:

This will create an amazon-mws.php in your config directory.

Config file content with the env variables:

Usage

Authentication

Amazon MWS authenticates you via the Canonicalized Query String. The Laravel Amazon MWS Package handles this for you and adds the string for each request. You just have to add your seller specific credentials to your .env file (configuration).

Marketplaces

If you need to change the marketplaces just set the country/countries in your code via the MWS Facade. For simplicity the package chooses the right endpoint and market place id via the given country. You do not have to set them by yourself. (Amazon MWS endpoints and Market Place IDS Overview) If something is missing do not hesitate to create an issue.

Orders

Retrieve order information that you need. Amazon MWS Orders Documentation Overview

List Orders

Returns orders created or updated during a time frame that you specify. MWS List Orders Documentation

Throttling

Get Order

Returns orders based on the AmazonOrderId values that you specify. MWS Get Order Documentation

Throttling

List Order Items

Returns order items based on the AmazonOrderId that you specify. MWS List Order Items Documentation

Throttling

Feeds

The Feeds API lets you upload inventory and order data to Amazon Amazon MWS Orders Documentation Overview

Submit Feed

Uploads a feed for processing by Amazon MWS.

You must set the feed type and content to successfully submit the feed. The content for the xml depends on the FeedType

Throttling

Submit Invoice Feed (VAT)

You can upload invoices using _UPLOAD_VATINVOICE Feed Type via Feeds API. Use the SubmitFeed operation with the below mentioned parameters to submit an invoice for an order.

Invoice Uploader developer documentation

Throttling

For the feed type _UPLOAD_VATINVOICE, the throttle limit is 1 invoice upload per 3 seconds, or 20 invoices per minute, or 1200 invoices per hour, or 28800 invoices per day.

Responses

The Amazon MWS XML responses are parsed and will be casted into a convenient array structure. For checking if the Feed was successful you need to check the result via the GetSubmissionFeedResult endpoint.

SubmitFeedResponse Example:

Get Feed Submission Result

Returns the feed processing report and the Content-MD5 header.

Pass the Feed Submission Id as a parameter to retrieve the feed result Amazon MWS Description GetFeedSubmissionResult

Warning: Invoice Feed Submission Results are returning blank strings instead of a SubmitFeedResponse

Throttling
Responses

The Feed Submission Result responses are parsed and will be casted into a convenient structure.

SubmitFeedResponse Example:

Merchant Fulfillment

With the Merchant Fulfillment service, you can build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.

Amazon MWS Merchant Fulfillment Documentation Overview

Get Eligible Shipping Services

Returns a list of shipping service offers. MWS Get Eligible Shipping Services Documentation

Fill the params with the ShipmentRequestDetails and the ShippingOfferingFilter

Throttling

Get Shipment

Returns an existing shipment for a given identifier. MWS Get Shipment Documentation

Throttling

Create Shipment

The CreateShipment operation purchases shipping and returns PDF, PNG, or ZPL document data for a shipping label, depending on the carrier. MWS Create Shipment Documentation

Throttling

Cancel Shipment

Cancels an existing shipment. MWS Cancel Shipment Documentation

Throttling

Get Additional Seller Inputs

Returns a list of additional seller inputs that are required from the seller to purchase the shipping service that you specify. MWS Get Additional Seller Inputs Documentation

Throttling

Get Service Status

Returns the operational status of the Merchant Fulfillment service. MWS Get Service Status Documentation

Throttling

General Responses

Response Format Documentation The Amazon MWS XML responses are parsed and will be casted into a convenient array structure. GetOrder Response Example:

Exceptions

The Laravel Amazon MWS package does not catch the Exceptions returned by guzzle. For Example for throttling ServerExceptions or missing Parameter Client Exceptions.

Endpoint Road map

Laravel Amazon MWS is still under development. We have only added the endpoints we currently are using ourselfs. We decided to ship it in this early stage so you can help to add some endpoits or use the already existing.

Endpoint List:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

About us

LOOXIS GmbH based in Minden, Germany.

LOOXIS is a manufacturer of personalised gift articles, which are sold throughout Europe in (photo) specialist shops and via our online shop under www.looxis.com.

License

MIT


All versions of laravel-amazon-mws with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
guzzlehttp/guzzle Version ^7.0
spatie/array-to-xml Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package looxis/laravel-amazon-mws contains the following files

Loading the files please wait ....