PHPackages                             yc-hwc/php-shopee - 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. yc-hwc/php-shopee

ActiveLibrary[API Development](/categories/api)

yc-hwc/php-shopee
=================

PHP shopee v2 SDK

1.0.2(3y ago)0101proprietaryPHPPHP &gt;=7.2

Since May 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yc-hwc/php-shopee)[ Packagist](https://packagist.org/packages/yc-hwc/php-shopee)[ RSS](/packages/yc-hwc-php-shopee/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

php-shopee
==========

[](#php-shopee)

php shopee v2 SDK

#### 安装教程

[](#安装教程)

```
composer require yc-hwc/php-shopee

```

### 用法

[](#用法)

---

#### 配置

[](#配置)

```
    $config = [
        'shopeeUrl'   => 'https://partner.test-stable.shopeemobile.com',
        'partnerId'   => '',
        'partnerKey'  => '',
        'accessToken' => '',
        'shopId'      => '',
    ];

    $shopeeSDK = \PHPShopee\ShopeeSDK::config($config);

```

#### [店铺授权](https://open.shopee.com/documents/v2/%5B%E4%B8%AD%E6%96%87%E7%89%88%5D%20OpenAPI%202.0%20Overview?module=87&type=2)

[](#店铺授权)

```
    $config = [
        'shopeeUrl'  => 'https://partner.test-stable.shopeemobile.com',
        'partnerId'  => 'xxxxxxx',
        'partnerKey' => 'xxxxxxxxxxxxxx',
    ];

    $shopeeSDK = \PHPShopee\ShopeeSDK::config($config);
    $fullUrl = $shopeeSDK->shopAuth()
        ->api('auth_partner')
        ->withQueryString([
            'redirect' => 'https://www.baidu.com/',
        ])
        ->fullUrl();

    return redirect($fullUrl);

```

#### [generate first mile tracking number](https://open.shopee.com/documents/v2/v2.first_mile.generate_first_mile_tracking_number?module=96&type=1)

[](#generate-first-mile-tracking-number)

```
    $config = [
        'shopeeUrl'   => 'https://partner.test-stable.shopeemobile.com',
        'partnerId'   => '',
        'partnerKey'  => '',
        'accessToken' => '',
        'shopId'      => '',
    ];

    $params = [
        'declare_date' => '',
        'quantity'     => 1,
        'seller_info' => [
            'name'    => "tom",
            'address' => "xxxxxxx",
            'region'  => "CN",
            'zipcode' => "1xxxx15",
            'phone'   => "186xxxxxx49"
        ]
    ]

    $shopeeSDK = \PHPShopee\ShopeeSDK::config($config);
    $response = $shopeeSDK->firstMile
    ->api('generate_firstMile_tracking_number')
    ->withBody($params)
    ->post();

    print_r($response);

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~11 days

Total

3

Last Release

1452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3709823f90975a654e458dfe71f91bd70e628f2f225d33e1588810abd67bb2?d=identicon)[huangweijie](/maintainers/huangweijie)

---

Top Contributors

[![huangweijie0308](https://avatars.githubusercontent.com/u/33050752?v=4)](https://github.com/huangweijie0308 "huangweijie0308 (9 commits)")

### Embed Badge

![Health badge](/badges/yc-hwc-php-shopee/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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