You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
5
8
6
-
## Installation
9
+
## Copy of Amazon's Provided Code
7
10
8
-
The Product Advertising API PHP SDK can be installed with [Composer](https://getcomposer.org/). Run this command:
11
+
This is a public copy of [Amazon's provided code](https://webservices.amazon.com/paapi5/documentation/quick-start/using-sdk.html), as their version is not available through Packagist as of writing.
12
+
13
+
## Installation
14
+
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 [`thewirecutter/paapi5-php-sdk`](https://packagist.org/packages/thewirecutter/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:
9
15
10
16
```sh
11
-
$ composer require thewirecutter/paapi5-php-sdk
17
+
composer require thewirecutter/paapi5-php-sdk
12
18
```
13
-
## Usage
14
19
20
+
## Usage
15
21
> **Note:** This version of the Product Advertising API SDK for PHP requires PHP 5.5 or greater.
16
22
17
-
Simple example for searching items.
23
+
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:
18
24
19
25
```php
20
26
<?php
21
-
22
27
/**
23
28
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
24
29
*
@@ -39,73 +44,76 @@ Simple example for searching items.
Complete documentation, installation instructions, and examples are available [here](https://webservices.amazon.com/paapi5/documentation/with-sdk.html).
194
+
Complete documentation, installation instructions, and examples are available [here](https://webservices.amazon.com/paapi5/documentation/index.html).
195
+
196
+
## License
197
+
This SDK is distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), see LICENSE.txt and NOTICE.txt for more information.
0 commit comments