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

ActiveLibrary[API Development](/categories/api)

yc-hwc/laravel-shopee
=====================

PHP Shopee SDK

1.0.10(3y ago)225proprietaryPHPPHP &gt;=8.0

Since Apr 27Pushed 3y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

laravel-shopee
==============

[](#laravel-shopee)

laravel v2 SDK

#### 安装教程

[](#安装教程)

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

```

### 用法

[](#用法)

---

#### 配置

[](#配置)

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

    $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);

```

#### [media\_space.upload\_image ](https://open.shopee.cn/documents/v2/v2.media_space.upload_image?module=91&type=1)

[](#media_spaceupload_image-)

```
    $content = file_get_contents('path/to/file');

    $config = [
        'shopeeUrl'   => '',
        'partnerId'   => '',
        'partnerKey'  => '',
    ];

    $shopeeSDK = \PHPShopee\ShopeeSDK::config($config);
    $response = $shopeeSDK->mediaSpace()
        ->api('upload_image')
        ->attach('image', $content, md5($content))
        ->post(['scene' => 'normal']);
    print_r($response);

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~36 days

Recently: every ~1 days

Total

11

Last Release

1118d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.2

1.0.4PHP &gt;=8.0

### 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 (32 commits)")

### Embed Badge

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

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[echolabsdev/prism

A powerful Laravel package for integrating Large Language Models (LLMs) into your applications.

2.3k388.3k10](/packages/echolabsdev-prism)[sburina/laravel-whmcs-up

WHMCS API client and user provider for Laravel

271.3k](/packages/sburina-laravel-whmcs-up)

PHPackages © 2026

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