sergeylukin / amazon-product-search
Search for products on amazon.com by keyword
0.1.6
2015-10-28 09:36 UTC
Requires
- php: >=5.4.0
- ezyang/htmlpurifier: ^4.7
- rmccue/requests: >=1.0
Requires (Dev)
- codeception/codeception: 2.1.*
- codeception/mockery-module: 0.2.*
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
git clone https://github.com/sergeylukin/amazon-product-search.git
composer install
Run tests:
./vendor/bin/codecept run
License
MIT