PHPackages                             haistar/shopee-php-sdk - 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. haistar/shopee-php-sdk

ActiveLibrary[API Development](/categories/api)

haistar/shopee-php-sdk
======================

PHP SDK for Shopee Open API

v3.1.1(3y ago)2749.0k↓43.3%16[1 PRs](https://github.com/raviMukti/shopee-api-client/pulls)MITPHP

Since Aug 26Pushed 2y ago5 watchersCompare

[ Source](https://github.com/raviMukti/shopee-api-client)[ Packagist](https://packagist.org/packages/haistar/shopee-php-sdk)[ RSS](/packages/haistar-shopee-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)Dependencies (3)Versions (10)Used By (0)

Shopee PHP Client
=================

[](#shopee-php-client)

This is a Shopee PHP Client, currently supported for **API V2** in [ShopeeOpenPlatform](https://open.shopee.com/documents?module=87&type=2&id=64&version=2)

Composer Install
----------------

[](#composer-install)

`composer require haistar/shopee-php-sdk`

Usage
-----

[](#usage)

```
$shopeeClient = new ShopApiClient();
$apiConfig = new ShopeeApiConfig();
$apiConfig->setPartnerId((int) $_ENV["SHOPEE_PARTNER_ID"]);
$apiConfig->setShopId((int) $_ENV["SHOPEE_SHOP_ID"]);
$apiConfig->setAccessToken($_ENV["SHOPEE_ACCESS_TOKEN"]);
$apiConfig->setSecretKey($_ENV["SHOPEE_SECRET_KEY"]);

$baseUrl = "https://partner.test-stable.shopeemobile.com";
$apiPath = "/api/v2/product/get_item_list";

$params = array();

$productList = $shopeeClient->httpCallGet($baseUrl, $apiPath, $params, $apiConfig);

```

Running Test
------------

[](#running-test)

`composer test`

For running all tests

For laravel 8
-------------

[](#for-laravel-8)

Run `composer require haistar/shopee-php-sdk`

Then `composer update`

Add this to .Env

`SHOPEE_PARTNER_ID={partner_id}``SHOPEE_SHOP_ID= {shop_id}``SHOPEE_ACCESS_TOKEN={access_token}``SHOPEE_SECRET_KEY={partner_key}`

Add ontop of Controller

`use Haistar\ShopeePhpSdk\request\shop\ShopApiClient;``use Haistar\ShopeePhpSdk\client\ShopeeApiConfig;`

Try

```
public function index()
{

$shopeeClient = new ShopApiClient();
$apiConfig = new ShopeeApiConfig();
$apiConfig->setPartnerId((int) $_ENV["SHOPEE_PARTNER_ID"]);
$apiConfig->setShopId((int) $_ENV["SHOPEE_SHOP_ID"]);
$apiConfig->setAccessToken($_ENV["SHOPEE_ACCESS_TOKEN"]);
$apiConfig->setSecretKey($_ENV["SHOPEE_SECRET_KEY"]);

$baseUrl = "https://partner.test-stable.shopeemobile.com";
$apiPath = "/api/v2/product/get_item_list";

$params = ["offset"=>0,"item_status"=>"NORMAL","page_size" => 10,];

$productList = $shopeeClient->httpCallGet($baseUrl, $apiPath, $params, $apiConfig);

return response()->json($productList);

 }

```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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.

###  Release Activity

Cadence

Every ~73 days

Recently: every ~104 days

Total

9

Last Release

1183d ago

Major Versions

v1.0.0 → v2.0.02021-09-07

v2.0.4 → v3.0.02022-06-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40047230?v=4)[ravimukti](/maintainers/raviMukti)[@raviMukti](https://github.com/raviMukti)

---

Top Contributors

[![raviMukti](https://avatars.githubusercontent.com/u/40047230?v=4)](https://github.com/raviMukti "raviMukti (26 commits)")[![ferlerrorr](https://avatars.githubusercontent.com/u/80177329?v=4)](https://github.com/ferlerrorr "ferlerrorr (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/haistar-shopee-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/haistar-shopee-php-sdk/health.svg)](https://phpackages.com/packages/haistar-shopee-php-sdk)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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