PHPackages                             ledc/shan-song - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ledc/shan-song

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ledc/shan-song
==============

闪送开放平台，自营商户SDK

v7.1.0(11mo ago)0571MITPHPPHP &gt;=7.4

Since May 27Pushed 11mo agoCompare

[ Source](https://github.com/ledccn/shan-song)[ Packagist](https://packagist.org/packages/ledc/shan-song)[ RSS](/packages/ledc-shan-song/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (16)Used By (1)

说明
==

[](#说明)

闪送开放平台，自营商户SDK

安装
--

[](#安装)

`composer require ledc/shan-song`

使用说明
----

[](#使用说明)

开箱即用，只需要传入一个配置，初始化一个实例即可：

```
use Ledc\ShanSong\Config;
use Ledc\ShanSong\Merchant;

//更多配置项，可以查看 配置管理类的属性 Ledc\ShanSong\Config
$config = [
    'shopId' => '',
    'clientId' => '',
    'appSecret' => '',
    'testShopId' => '',
    'debug' => true,
    'enabled' => true,
];

$merchant = new Merchant(new Config($config));
```

在创建实例后，所有的方法都可以由IDE自动补全；例如：

```
/** @var \Ledc\ShanSong\Merchant $merchant */
// 查询开通城市
$merchant->openCitiesLists();

// 分页查询商户店铺
$merchant->queryAllStores();

// 查询城市可指定的交通工具
$merchant->optionalTravelWay();

// 订单计费
$merchant->orderCalculate();

// 提交订单
$merchant->orderPlace();

// 订单加价
$merchant->addition();

// 查询订单详情
$merchant->orderInfo();

// 查询闪送员位置信息
$merchant->courierInfo();

// 查询订单续重加价金额
$merchant->calculateOrderAddWeightFee();

// 支付订单续重费用
$merchant->payAddWeightFee();

// 订单预取消
$merchant->preAbortOrder();

// 订单取消
$merchant->abortOrder();

// 确认物品送回
$merchant->confirmGoodsReturn();

// 店铺操作（新增店铺、修改店铺）
$merchant->storeOperation();

// 查询账号额度
$merchant->getUserAccount();

// 修改收件人手机号
$merchant->updateToMobile();

// 批量新增店铺
$merchant->addStores();

// 更多...
```

二次开发
----

[](#二次开发)

配置管理类：`Ledc\ShanSong\Config`

闪送自营商户：`Ledc\ShanSong\Merchant`

闪送HttpClient：`Ledc\ShanSong\HttpClient`，您可以引入该特性自定义HttpClient。

官方文档
----

[](#官方文档)

捐赠
--

[](#捐赠)

[![reward](reward.png)](reward.png)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance52

Moderate activity, may be stable

Popularity10

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

Recently: every ~13 days

Total

15

Last Release

335d ago

### Community

Maintainers

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

---

Top Contributors

[![ledccn](https://avatars.githubusercontent.com/u/53997080?v=4)](https://github.com/ledccn "ledccn (16 commits)")

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/ledc-shan-song/health.svg)

```
[![Health](https://phpackages.com/badges/ledc-shan-song/health.svg)](https://phpackages.com/packages/ledc-shan-song)
```

###  Alternatives

[hofff/contao-calendarfield

Frontend text field with datepicker for Contao Open Source CMS

2033.8k3](/packages/hofff-contao-calendarfield)[imliam/shareable-link

Conveniently generate shareable URLs for various social media websites

102.5k](/packages/imliam-shareable-link)

PHPackages © 2026

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