Download the PHP package shevabam/amazon-product-info without Composer
On this page you can find all versions of the php package shevabam/amazon-product-info. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shevabam/amazon-product-info
More information about shevabam/amazon-product-info
Files in shevabam/amazon-product-info
Package amazon-product-info
Short Description Get simple product information from Amazon API
License GPL-2.0-only
Homepage https://github.com/shevabam/amazon-product-info
Informations about the package amazon-product-info
Amazon Product Information
Amazon Product Information is a PHP library for fetching simple products information from Amazon API.
Provides simple information about a product from its ASIN number.
The information returned is:
- product name
- access URL
- main image (different dimensions)
- price
Requirements
You have to set up an Amazon Associates account that has been reviewed and received final acceptance in to the Amazon Associates Program.
You'll need an access key, secret key, and partner tag (Tools > Product Advertising API).
More information here.
Amazon Product Information requires PHP 8.0+.
Installation
With Composer, run this command:
composer require shevabam/amazon-product-info
It downloads the Product Advertising API PHP SDK provided by Amazon.
Usage
First, include the library in your code using the Composer autoloader and then create an AmazonProductInfo object with your Amazon Associates credentials.
Locale
This library supports all Product Advertising API locales.
Default: us.
lang | country |
---|---|
au | Australia |
br | Brazil |
ca | Canada |
fr | France |
de | Germany |
in | India |
it | Italy |
jp | Japan |
mx | Mexico |
nl | Netherlands |
sg | Singapore |
sa | South Arabia |
es | Spain |
sw | Sweden |
tr | Turkey |
ae | United Arab Emirates |
uk | United Kingdom |
us | United States |
Search item(s) by ASIN
You can search items with ASIN number (must be an array):
Full example
Result: