PHPackages                             klabeh/amazon-mws-repricing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. klabeh/amazon-mws-repricing

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

klabeh/amazon-mws-repricing
===========================

Amazon Repricing Helper Classes

04PHP

Since May 2Pushed 9y agoCompare

[ Source](https://github.com/klabeh/amazon-mws-repricing)[ Packagist](https://packagist.org/packages/klabeh/amazon-mws-repricing)[ RSS](/packages/klabeh-amazon-mws-repricing/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Amazon-Mws-Repricing
====================

[](#amazon-mws-repricing)

Amazon MWS Repricing Helper Classes

### Getting Inventory Data:

[](#getting-inventory-data)

Usage for getting the Inventory Data:

```
$config = new \Twinsen\AmazonMwsRepricing\Models\MwsConfigModel();
$config->setServiceUrl("https://mws.amazonservices.de/");
$config->setKeyId('****');
$config->setAccessKey('****');
$config->setMarketPlaceId('****');
$config->setMerchantId('****');
$mwsService = new \Twinsen\AmazonMwsRepricing\MwsService();
$mwsService->connect($config);
$inventory = $mwsService->getInventoryItems();
print_r($inventory[0]);

```

Feel free to implement the MwsConfigInterface,for passing the Configuration.

### Getting Product Price updates:

[](#getting-product-price-updates)

1. Register a AWS Account
2. Create a IAM User,grant SQS Support to it
3. Create SQS Queue
4. Use following Tutorial : [http://docs.developer.amazonservices.com/en\_IT/subscriptions/Subscriptions\_ReceivingNotifications.html](http://docs.developer.amazonservices.com/en_IT/subscriptions/Subscriptions_ReceivingNotifications.html) to give acess to the Amazon MWS
5. Use Mws to put the Key on it:

```
$mwsService = new \Twinsen\AmazonMwsRepricing\MwsSubscriptionService();
$mwsService->connect($mwsConfig);
$mwsService->registerDestination('https://sqs.eu-central-1.amazonaws.com/***');
$mwsService->createSubscription('https://sqs.eu-central-1.amazonaws.com/***');

```

5. Look at the Queue in Console Manager
6. If you want to know the Format,use following Link

### Todo: Implement Price Updates Push

[](#todo-implement-price-updates-push)

use the following Api to pass the Prices back: [http://docs.developer.amazonservices.com/en\_US/feeds/Feeds\_SubmitFeed.html](http://docs.developer.amazonservices.com/en_US/feeds/Feeds_SubmitFeed.html)

### Getting Prices (deprecated and not working anymore due to Amazon Update)

[](#getting-prices-deprecated-and-not-working-anymore-due-to-amazon-update)

For Getting the Price Information you can use 2 Different Approaches:

1. Using the MWS Product Api

```
$config = new \Twinsen\AmazonMwsRepricing\Models\MwsConfigModel();
$config->setServiceUrl("https://mws.amazonservices.de/");
$config->setKeyId('****');
$config->setAccessKey('****');
$config->setMarketPlaceId('****');
$config->setMerchantId('****');
$mwsService = new \Twinsen\AmazonMwsRepricing\MwsProductService();
$mwsService->connect($config);
$asin = "****";
$priceModel = $mwsService->getCompetitivePriceForASIN($asin);

```

2. Using the Amazon Advertising Api

```
$conf = new \Twinsen\AmazonMwsRepricing\Models\PaaConfigModel();
$conf->setCountry('de');
$conf->setAccessKey("***");
$conf->setSecretKey("***");
$conf->setAssociateTag("***");
$paaService = new \Twinsen\AmazonMwsRepricing\PaaService();
$paaService->connect($conf);
$response = $paaService->getCompetivePriceForAsin("****");
echo $paaService->debugResponse($response);

```

#### Another interessting Projects related to the Project:

[](#another-interessting-projects-related-to-the-project)

[https://github.com/wp-plugins/wp-lister-for-amazon/blob/0cfdc6f7e143454ab5ed6b0b12b7d4272250fb6e/classes/helper/WPLA\_FeedDataBuilder.php](https://github.com/wp-plugins/wp-lister-for-amazon/blob/0cfdc6f7e143454ab5ed6b0b12b7d4272250fb6e/classes/helper/WPLA_FeedDataBuilder.php)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28295828?v=4)[klabeh](/maintainers/klabeh)[@klabeh](https://github.com/klabeh)

---

Top Contributors

[![EliasKotlyar](https://avatars.githubusercontent.com/u/9529505?v=4)](https://github.com/EliasKotlyar "EliasKotlyar (21 commits)")

### Embed Badge

![Health badge](/badges/klabeh-amazon-mws-repricing/health.svg)

```
[![Health](https://phpackages.com/badges/klabeh-amazon-mws-repricing/health.svg)](https://phpackages.com/packages/klabeh-amazon-mws-repricing)
```

###  Alternatives

[symbiote/silverstripe-dynamiclists

A Module that allows users to create custom data lists. These lists can then be used in a form control (specified via code by a developer) or within a user defined form to be able to define controlled vocabularies managed in a central location that might be used across several forms.

109.7k2](/packages/symbiote-silverstripe-dynamiclists)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
