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 yesterday

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M272](/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.1M454](/packages/google-gax)

PHPackages © 2026

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