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 2mo 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 10% 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://www.gravatar.com/avatar/ed7575fe5d7a580e5368829295c52bfca476745b0574966cdd538c9b1f1d17eb?d=identicon)[sharadjaiswal1411](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M478](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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