PHPackages                             ptx/lumen-sf-express - 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. ptx/lumen-sf-express

ActiveLibrary[API Development](/categories/api)

ptx/lumen-sf-express
====================

laravel、lumen顺风非官方SDK

12[1 issues](https://github.com/putianxin/lumen-sf-express/issues)PHP

Since Jan 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/putianxin/lumen-sf-express)[ Packagist](https://packagist.org/packages/ptx/lumen-sf-express)[ RSS](/packages/ptx-lumen-sf-express/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

lumen-sf-express
================

[](#lumen-sf-express)

📲 互亿无线 composer package.

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.1

安装
--

[](#安装)

```
$ composer require ptx/lumen-sf-express"
```

配置
--

[](#配置)

**请移动并修改config中的文件**

```
'checkWord'=>'',//校验码
'clientCode'=>''//顾客编码
```

**请在app.php中注册服务**

```
$app->register(\Ptx\SF\SFServiceProvider::class);
```

Usage
-----

[](#usage)

```
/**物流查询**/
$tracking_number = 811089125247;
SF::route()->Routes($tracking_number);

/**下单**/
// 你自己ERP系统里的订单ID。
$orderid = 88888888;
// 收件方信息
$d_company = '罗湖火车站';
$d_contact = '小雷';
$d_tel = '13800000000';
$d_address = '罗湖火车站东区调度室';

// 其它可选参数
$data = array(
    // 寄件方信息
    'j_mobile'=>'13000000000',
    'j_province'=>'广东省',
    'j_city'=>'深圳',
    'j_county'=>'福田区',
    'j_address'=>'罗湖火车站东区调度室',

    'express_type'=>'1', // 快件产品类别
    'pay_method'=>'1', // 付款方式
    'parcel_quantity'=>'1', // 包裹数
    'cargo_length'=>'33', // 货物总长
    'cargo_width'=>'33', // 货物总宽
    'cargo_height'=>'33', // 货物总高
    'remark'=>'' // 备注
);

// 货物信息。可以有多个。 name为必填字段。
$Cargo = array(
    array( 'name'=>'LV背包', 'count'=>'3', 'unit'=>'只', 'weight'=>'', 'amount'=>'', 'currency'=>'', 'source_area'=>''),
    array('name'=>'LV手表', 'count'=>'3', 'unit'=>'块', 'weight'=>'', 'amount'=>'', 'currency'=>'', 'source_area'=>'')
);

// 下单
SF::order->Order($orderid , $d_company, $d_contact, $d_tel, $d_address, $data, $Cargo);
```

License
-------

[](#license)

MIT

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7887a1ad0fe7c3305ad49b8b79ddccae329f85a3f7669cf5454c932cbe73acba?d=identicon)[putianxin](/maintainers/putianxin)

---

Top Contributors

[![putianxin](https://avatars.githubusercontent.com/u/11360560?v=4)](https://github.com/putianxin "putianxin (11 commits)")

### Embed Badge

![Health badge](/badges/ptx-lumen-sf-express/health.svg)

```
[![Health](https://phpackages.com/badges/ptx-lumen-sf-express/health.svg)](https://phpackages.com/packages/ptx-lumen-sf-express)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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