PHPackages                             phpscots/product-comparison - 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. [API Development](/categories/api)
4. /
5. phpscots/product-comparison

ActiveLibrary[API Development](/categories/api)

phpscots/product-comparison
===========================

Product Search/advertisement Package for Flipkart &amp; Amazon &amp; Snapdeal

111PHP

Since Dec 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sharadjaiswal1411/product-comparsion-script)[ Packagist](https://packagist.org/packages/phpscots/product-comparison)[ RSS](/packages/phpscots-product-comparison/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

original package
----------------

[](#original-package)

Upgarding package for laravel 5.4
Upgrading dependencies phpunit and guzzle http
Creating support for snapdeal

Please Don't use, Still in development
--------------------------------------

[](#please-dont-use-still-in-development)

Shopkart-Laravel is a very simple package for laravel for making call to Flipkart and Amazon Search APIs. Installing Shopkart-Laravel
---------------------------

[](#installing-shopkart-laravel)

Install through Composer.

composer require phpscots/product-comparison dev-master

Next, add the service provider to app/config/app.php. :

```
# app.php

'providers' => [
    // ..
    Phpscots\ProductSearch\ProductSearchServiceProvider::class,

]
```

Also add the facade. :

```
# app.php

'aliases' => [
    // ..
    'ProductSearch'  => Phpscots\ProductSearch\Facades\ProductSearch::class,

]
```

Now add your flipkart and amazon affilate id credentials in services.php

```
# services.php

	// ..
	'amazon' => [
		'client_id'     	=>  'your_amazon_client_id',
		'client_secret' 	=>  'your_amazon_client_secret/',
		'tag'           	=>  'your_amazon_id_tag',
		'country'       	=>  'your_country_code'
	],

	'flipkart' => [
		'client_id'     	=>  'your_flipkart_client_id',
		'client_secret' 	=>  'your_flipkart_client_secret',
		'country'       	=>  '',
		'tag'           	=>  ''
	],
	'snapdeal' => [
		'client_id'     	=>  'your_snapdeal_client_id',
		'client_secret' 	=>  'your_snapdeal_client_secret',
		'country'       	=>  '',
		'tag'           	=>  ''
	],
```

Usage
-----

[](#usage)

### Amazon API

[](#amazon-api)

To search for product in amazon api , write :

```
	ProductSearch::with('amazon')->search('PS3','Electronics');
```

This will return list of products based on Keyword 'PS3'.The important thing is you have to pass the Search Index for Amazon Search API Request which is 'Electronics' in our case. Check more about it here - [Search Indices](http://docs.aws.amazon.com/AWSECommerceService/latest/DG/SearchIndices.html).

First parameter of amazon search method is the keyword and second parameter is the Search Index.

### Flipkart API

[](#flipkart-api)

To search for products in flipkart api, write :

```
	ProductSearch::with('flipkart')->search('PS3',5);
```

This will return list of flipkart products from their api based on keyword specified.('PS3' in our case).

First parameter of flipkart search method is the keyword and second parameter is the result count i.e. number or product you want from api. ( max 10 ).

Please Don't use, Still in development
--------------------------------------

[](#please-dont-use-still-in-development-1)

[Online Interview Questions](https://www.onlineinterviewquestions.com/)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7452657?v=4)[Sharad](/maintainers/sharadjaiswal1411)[@sharadjaiswal1411](https://github.com/sharadjaiswal1411)

---

Top Contributors

[![sharadjaiswal1411](https://avatars.githubusercontent.com/u/7452657?v=4)](https://github.com/sharadjaiswal1411 "sharadjaiswal1411 (18 commits)")

### Embed Badge

![Health badge](/badges/phpscots-product-comparison/health.svg)

```
[![Health](https://phpackages.com/badges/phpscots-product-comparison/health.svg)](https://phpackages.com/packages/phpscots-product-comparison)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
