PHPackages                             rajpurohithitesh/paapi5-php-sdk - 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. rajpurohithitesh/paapi5-php-sdk

ActiveLibrary

rajpurohithitesh/paapi5-php-sdk
===============================

Amazon's Official Product Advertising API v5 PHP SDK with OffersV2

1.0.0(4mo ago)112Apache-2.0PHPPHP ^8.0CI passing

Since Dec 12Pushed 4mo agoCompare

[ Source](https://github.com/RajpurohitHitesh/paapi5-php-sdk)[ Packagist](https://packagist.org/packages/rajpurohithitesh/paapi5-php-sdk)[ Docs](https://webservices.amazon.com/paapi5/documentation/index.html)[ RSS](/packages/rajpurohithitesh-paapi5-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Product Advertising API 5.0 SDK for PHP
=======================================

[](#product-advertising-api-50-sdk-for-php)

[![Version](https://camo.githubusercontent.com/3ddd2b34ae2eb607ac34edd1ffad78479440ed8479808ddc6c4e2a7c10e011d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616a7075726f6869746869746573682f7061617069352d7068702d73646b)](https://packagist.org/packages/rajpurohithitesh/paapi5-php-sdk)[![PHP Version](https://camo.githubusercontent.com/a90c99d8c971c5963bc16aa2906fc9129b0bb4df0694cc096cb561340047c56e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72616a7075726f6869746869746573682f7061617069352d7068702d73646b)](https://packagist.org/packages/rajpurohithitesh/paapi5-php-sdk)[![Total Downloads](https://camo.githubusercontent.com/e506f62b5cee07a8c1288ba341bd9d4f292dd4520e7b983bfaf07034c6e7e84d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616a7075726f6869746869746573682f7061617069352d7068702d73646b2e7376673f7374796c653d666c6174)](https://packagist.org/packages/rajpurohithitesh/paapi5-php-sdk)

This repository contains the open source PHP SDK that allows you to access the [Product Advertising API](https://webservices.amazon.com/paapi5/documentation/index.html) from your PHP app.

🚨 Version 1.0.0 - Breaking Changes
----------------------------------

[](#-version-100---breaking-changes)

**Legacy Offers v1 has been completely removed.** This SDK now exclusively supports **OffersV2**.

If you're upgrading from v1.x:

- Replace all `OFFERSLISTINGS*` with `OFFERS_V2LISTINGS*`
- Change `getOffers()` to `getOffersV2()`
- Update price access: `getPrice()->getMoney()->getDisplayAmount()`

See [MIGRATION\_GUIDE\_V2.md](MIGRATION_GUIDE_V2.md) for complete migration instructions.

Installation
------------

[](#installation)

The Product Advertising API PHP SDK can be installed with [Composer](https://getcomposer.org/). The SDK is available via [Packagist](http://packagist.org/) under the [`rajpurohithitesh/paapi5-php-sdk`](https://packagist.org/packages/rajpurohithitesh/paapi5-php-sdk) package. If Composer is installed globally on your system, you can run the following in the base directory of your project to add the SDK as a dependency:

```
composer require rajpurohithitesh/paapi5-php-sdk

```

Usage
-----

[](#usage)

> **Note:** This version of the Product Advertising API SDK for PHP requires PHP 8.0 or greater.

Simple example for [SearchItems](https://webservices.amazon.com/paapi5/documentation/search-items.html) to discover Amazon products with the keyword 'Harry Potter' in Books category:

```
