PHPackages                             rajarizwan2007/bestbuy-php - 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. rajarizwan2007/bestbuy-php

ActiveLibrary[API Development](/categories/api)

rajarizwan2007/bestbuy-php
==========================

High level PHP 8 client for the Best Buy API

03.8k↓50%PHP

Since Oct 17Pushed 2y agoCompare

[ Source](https://github.com/rajarizwan2007/bestbuy-php)[ Packagist](https://packagist.org/packages/rajarizwan2007/bestbuy-php)[ RSS](/packages/rajarizwan2007-bestbuy-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Best Buy SDK for PHP [![Build Status](https://camo.githubusercontent.com/988c9c6b781b43024b89ac86c3e3e2bc1036a6ef6d433d2e44c0f9220b122a89/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f42657374427579415049732f626573746275792d73646b2d7068702e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/BestBuyAPIs/bestbuy-sdk-php)
==================================================================================================================================================================================================================================================================================================================================================

[](#best-buy-sdk-for-php-)

[![License](https://camo.githubusercontent.com/bf5225fdcd6908b7dfb696d837085a11d5cb368174dd9afc83c17ecf125cb329/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626573746275792f626573746275792e737667)](https://github.com/BestBuyAPIs/bestbuy-sdk-php/blob/master/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/13c8d9e4f3c1fda01c4bf2f4fd0d7aadd24e5e95b056f595677c0af717012029/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626573746275792f626573746275792e737667)](https://packagist.org/packages/bestbuy/bestbuy)[![Coverage Status](https://camo.githubusercontent.com/1f9bf3357c81113dfbde5eecadc573a1e8e435b24c7f980f363e636006309bf3/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f42657374427579415049732f626573746275792d73646b2d7068702e737667)](https://coveralls.io/r/BestBuyAPIs/bestbuy-sdk-php?branch=master)[![Total Downloads](https://camo.githubusercontent.com/2d12086742fbaaafa67231d73753c329df9f5a106ad03f02a43ac7c5d117295a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626573746275792f626573746275792e737667)](https://packagist.org/packages/bestbuy/bestbuy)

This is a high-level PHP client for the [Best Buy developer API](https://developer.bestbuy.com/).

Getting Started
---------------

[](#getting-started)

1. Sign-up for a developer API Key at
2. Install the package
    - Using the command line
        `composer require bestbuy/bestbuy`
    - Using `composer.json`
        Add `"bestbuy/bestbuy": "^1.0"` inside of the *require* part of your `composer.json` file:

        ```
        "require": {
          "bestbuy/bestbuy": "^1.0"
        }
        ```
3. Use the package. There are several ways to provide the key to the `Client`:
    - Set an environment variable of `BBY_API_KEY` to your key and invoke the method
        `$bby = new \BestBuy\Client();`
    - Send the key in as a string when invoking the method
        `$bby = new \BestBuy\Client('YOURKEY');`
    - Send the key in as part of an object when invoking the method
        `$bby = new \BestBuy\Client(['key' => 'YOURKEY']);`

Documentation
-------------

[](#documentation)

- [Store Availability](#Store-Availability)
- [Product Categories](#Product-Categories)
- [Open Box Products](#Open-Box-Products)
- [Product Information](#Product-Information)
- [Product Recommendations](#Product-Recommendations)
- [Product Reviews](#Product-Reviews)
- [Stores](#Stores)
- [Version](#Version)

### Store Availability

[](#store-availability)

#### `$bby->availability(int|int[]|string $skus, int|int[]|string $stores, [array $responseConfig = []]);`

[](#bby-availabilityintintstring-skus-intintstring-stores-array-responseconfig--)

1. A single SKU/Store #
    `$bby->availability(6354884, 611);`
2. An array of SKUs/Store #s
    `$bby->availability([6354884, 69944141], [611, 281]);`
3. A valid query for SKUs/Stores
    `$bby->availability('name=Star*', 'area(55347, 25)');`

### Product Categories

[](#product-categories)

#### `$bby->categories(string $search = '', [array $responseConfig = []]);`

[](#bby-categoriesstring-search---array-responseconfig--)

1. All categories
    `$bby->categories();`
2. A single category
    `$bby->categories('cat00000');`
3. A query for categories
    `$bby->categories('name=Home*');`

### Open Box Products

[](#open-box-products)

#### `$bby->openBox(int|int[]|string $search = '', [array $responseConfig = []]);`

[](#bby-openboxintintstring-search---array-responseconfig--)

1. All open box products
    `$bby->openBox();`
2. A single product
    `$bby->openBox(6354884);`
3. An array of products
    `$bby->openBox([6354884, 69944141]);`
4. A query
    `$bby->openBox('category.id=cat00000');`

### Product Information

[](#product-information)

#### `$bby->products(int|string $search = '', [array $responseConfig = []]);`

[](#bby-productsintstring-search---array-responseconfig--)

1. All products
    `$bby->products();`
2. A single product
    `$bby->products(6354884);`
3. A query for products
    `$bby->products('name=Star*');`

### Product Recommendations

[](#product-recommendations)

#### `$bby->recommendations(string $type, int|string $categoryIdOrSku = null, [array $responseConfig = []]);`

[](#bby-recommendationsstring-type-intstring-categoryidorsku--null-array-responseconfig--)

1. Trending or Most Viewed products
    `$bby->recommendations(\BestBuy\Client::RECOMMENDATIONS_TRENDING);`
    `$bby->recommendations(\BestBuy\Client::RECOMMENDATIONS_TRENDING, 'cat00000');`
2. Similar or Also Viewed products
    `$bby->recommendations(\BestBuy\Client::RECOMMENDATIONS_SIMILAR, 6354884);`

### Product Reviews

[](#product-reviews)

#### `$bby->reviews(int|string $search = '', [array $responseConfig = []]);`

[](#bby-reviewsintstring-search---array-responseconfig--)

1. All reviews
    `$bby->reviews();`
2. A single review
    `$bby->reviews(69944141);`
3. A query for reviews
    `$bby->reviews('comment=purchase*');`

### Stores

[](#stores)

#### `$bby->stores(int|string $search = '', [array $responseConfig = []]);`

[](#bby-storesintstring-search---array-responseconfig--)

1. All stores
    `$bby->stores();`
2. A single store
    `$bby->stores(611);`
3. A query for stores
    `$bby->stores('name=eden*');`

### Version

[](#version)

#### `$bby->version();`

[](#bby-version)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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/33256730?v=4)[Raja Rizwan](/maintainers/rajarizwan2007)[@rajarizwan2007](https://github.com/rajarizwan2007)

---

Top Contributors

[![troymccabe](https://avatars.githubusercontent.com/u/1299743?v=4)](https://github.com/troymccabe "troymccabe (12 commits)")[![ecaron](https://avatars.githubusercontent.com/u/70704?v=4)](https://github.com/ecaron "ecaron (2 commits)")[![rajarizwan2007](https://avatars.githubusercontent.com/u/33256730?v=4)](https://github.com/rajarizwan2007 "rajarizwan2007 (2 commits)")

### Embed Badge

![Health badge](/badges/rajarizwan2007-bestbuy-php/health.svg)

```
[![Health](https://phpackages.com/badges/rajarizwan2007-bestbuy-php/health.svg)](https://phpackages.com/packages/rajarizwan2007-bestbuy-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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