PHPackages                             zto/zopsdk-php - 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. zto/zopsdk-php

ActiveLibrary[API Development](/categories/api)

zto/zopsdk-php
==============

中通开放平台SDK(php)

92.6k↓36.5%6[3 issues](https://github.com/ZTO-Express/zopsdk-php/issues)PHP

Since Jul 8Pushed 5y ago3 watchersCompare

[ Source](https://github.com/ZTO-Express/zopsdk-php)[ Packagist](https://packagist.org/packages/zto/zopsdk-php)[ RSS](/packages/zto-zopsdk-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

中通开放平台SDK（php版）
===============

[](#中通开放平台sdkphp版)

使用方式
----

[](#使用方式)

```
use zop\ZopClient;
use zop\ZopProperties;
use zop\ZopRequest;

// ZopProperties类的构造方法接收两个参数，分别是companyid和key，都需要注册中通开放平台后到个人中心查看
$properties = new ZopProperties("kfpttestCode", "kfpttestkey==");
$client = new ZopClient($properties);

$request = new ZopRequest();
$request->setUrl("http://58.40.16.120:9001/submitOrderCode");
$request->setData('{"data":{"content":{"branchId":"","buyer":"","collectMoneytype":"CNY","collectSum":"12.00","freight":"10.00","id":"xfs2018031500002222333","orderSum":"0.00","orderType":"1","otherCharges":"0.00","packCharges":"1.00","premium":"0.50","price":"126.50","quantity":"2","receiver":{"address":"育德路XXX号","area":"501022","city":"四川省,XXX,XXXX","company":"XXXX有限公司","email":"yyj@abc.com","id":"130520142097","im":"yangyijia-abc","mobile":"136*****321","name":"XXX","phone":"010-222***89","zipCode":"610012"},"remark":"请勿摔货","seller":"","sender":{"address":"华新镇华志路XXX号","area":"310118","city":"上海,上海市,青浦区","company":"XXXXX有限公司","email":"ll@abc.com","endTime":1369033200000,"id":"131*****010","im":"1924656234","mobile":"1391***5678","name":"XXX","phone":"021-87***321","startTime":1369022400000,"zipCode":"610012"},"size":"12,23,11","tradeId":"2701843","type":"1","typeId":"","weight":"0.753"},"datetime":"2018-3-30 12:00:00","partner":"test","verify":"ZTO123"}}');

echo $client->execute($request);
```

其他
--

[](#其他)

1. 该项目刚创建，功能还很不完善，如有问题请提issue
2. 由于中通开放平台各个接口返回值格式没有统一，所以未封装返回值，未来可能会做封装

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity33

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/2c6d34421353f1fdbb7685a352b676533ad04e5c718f99b4f0cf10920f8d25c8?d=identicon)[chocotan](/maintainers/chocotan)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/zto-zopsdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/zto-zopsdk-php/health.svg)](https://phpackages.com/packages/zto-zopsdk-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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