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

ActiveLibrary[API Development](/categories/api)

zacksleo/newegg-sdk
===================

sdk for newegg api

1.1.0(6y ago)1337MITPHP

Since Aug 8Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

 newegg-sdk
============

[](#-newegg-sdk-)

 sdk for newegg api.

Installing
----------

[](#installing)

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

Usage
-----

[](#usage)

### Create Client

[](#create-client)

```
$newegg = new Newegg([
    'key'       => 'app_key',
    'secret'    => 'app_secret',
    'seller_id' => 'seller_id',
    'debug'     => false,
    'log'       => [
        'name'       => 'newegg',
        'file'       => '/path/to/logs/newegg.log',
        'level'      => 'error',
        'permission' => 0777,
    ],
]);
```

### Api Call

[](#api-call)

调用时，支持两种方式，一种是链式调用

```
 $res = $newegg->ordermgmt->order->chinaorderinfo([
    'PageIndex'       => 1,
    'PageSize'        => 1,
    'RequestCriteria' => [
        'OrderNumberList'=> [
            'OrderNumber'=> ['orderNumber'],
        ],
    ],
]);
```

```
$res = $newegg->servicemgmt->rma->rmainfo([
    'PageInfo'=> [
        'PageIndex' => 1,
        'PageSize'  => 1,
    ],
    'KeywordsType'  => 2,
    'KeywordsValue' => 'OrderNumber',
]);
```

另一种是使用 request 方法

```
    $res = $newegg->request([
        'ordermgmt.orderstatus.orders.'.$orderNumber => null,
    ], [
        'Action' => 2,
        'Value' => [
            'Shipment' => [
                'Header' => [
                    'SellerID' => 'seller_id',
                    'SONumber' => $orderNumber,
                ],
                'PackageList' => [
                    'Package' => array_values($packages),
                ],
            ],
        ],
    ]);
```

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

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/zacksleo/newegg-sdk/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/zacksleo/newegg-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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

2464d ago

### 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 (14 commits)")

### Embed Badge

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

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

###  Alternatives

[justmd5/pinduoduo-sdk

拼多多API SDK【拼多多开放平台】.

23514.1k1](/packages/justmd5-pinduoduo-sdk)

PHPackages © 2026

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