sergeylukin/amazon-product-search

Search for products on amazon.com by keyword

0.1.6 2015-10-28 09:36 UTC

This package is auto-updated.

Last update: 2024-11-16 06:03:17 UTC


README

Library that allows searching for products on amazon.com store.

Installation

Use composer to require in your composer.json:

"sergeylukin/amazon-product-search": "dev-master"

or just run composer require sergeylukin/amazon-product-search

Usage

<?php require __DIR__ . '/vendor/autoload.php';

use Sergeylukin\AmazonProductSearch as Amazon;

$Product = Amazon::factory()->findOneProductByKeyword('latte cup');

print_r($Product);

sample output:

stdClass Object
(
 [title] => Best latte cup
 [price] => $12.05
 [image_uri] => http://example.com/latte-cup.jpg
 [description] => The best latte cup you will ever drink latte from. Period.
)

Development

Install git and composer

git clone https://github.com/sergeylukin/amazon-product-search.git
composer install

Run tests:

./vendor/bin/codecept run

License

MIT