PHPackages                             zacksleo/ec-sdk - 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. zacksleo/ec-sdk

ActiveLibrary[API Development](/categories/api)

zacksleo/ec-sdk
===============

电商平台 SDK

0404PHP

Since Aug 7Pushed 6y agoCompare

[ Source](https://github.com/zacksleo/ec-sdk)[ Packagist](https://packagist.org/packages/zacksleo/ec-sdk)[ RSS](/packages/zacksleo-ec-sdk/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

 ec-sdk
========

[](#-ec-sdk-)

 电商平台 SDK.

Installing
----------

[](#installing)

```
$ composer require zacksleo/ec-sdk -vvv
```

Usage
-----

[](#usage)

```
    try {
        $config = [
            'key'        => 'key',
            'secret'     => 'secret',
            'debug'      => false,
            'log' =>[
                'file'       => __DIR__.'/suning.log',
                'level'      => 'error',
                'permission' => 0777,
            ]
        ];
        $code = Factory::suning($config)->express->name2code('申通快递');
        var_dump($code);
    } catch (\Zacksleo\SuningSdk\SuningException $exception) {
        //苏宁返回错误
        var_dump($exception->getMessage());
    } catch (\Hanson\Foundation\Exception\HttpException $exception) {
        //Http 请求发生错误
        var_dump($exception->getMessage());
    } catch (\Exception $exception) {
        $exception->getMessage();
        var_dump($exception->getMessage());
    }
```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/zacksleo/ec-sdk/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/zacksleo/ec-sdk/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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/3e97b8a6f67b09513e345a128d73a63898ae1ec9f6a6c77234c78b3f16d305d1?d=identicon)[zacksleo](/maintainers/zacksleo)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/zacksleo-ec-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/zacksleo-ec-sdk/health.svg)](https://phpackages.com/packages/zacksleo-ec-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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