PHPackages                             covergenius/ebay-rest-php-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. covergenius/ebay-rest-php-sdk

ActiveLibrary[API Development](/categories/api)

covergenius/ebay-rest-php-sdk
=============================

https://developer.ebay.com/docs

v2.0.0(3y ago)214.6k↓45.5%3MITPHPPHP ^7.3|^8.0CI passing

Since Jun 1Pushed 3y ago4 watchersCompare

[ Source](https://github.com/CoverGenius/ebay-rest-php-sdk)[ Packagist](https://packagist.org/packages/covergenius/ebay-rest-php-sdk)[ RSS](/packages/covergenius-ebay-rest-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (4)Used By (0)

Ebay REST PHP Sdk
=================

[](#ebay-rest-php-sdk)

 [![Build Status](https://github.com/CoverGenius/ebay-rest-php-sdk/workflows/tests/badge.svg)](https://github.com/CoverGenius/ebay-rest-php-sdk/actions) [![Total Downloads](https://camo.githubusercontent.com/b2c7f0b70d176784a09bc2f418f5240444351df9f365d8bd91d4bbe226a4fc78/68747470733a2f2f706f7365722e707567782e6f72672f436f76657247656e6975732f656261792d726573742d7068702d73646b2f642f746f74616c2e737667)](https://packagist.org/packages/CoverGenius/ebay-rest-php-sdk) [![Latest Stable Version](https://camo.githubusercontent.com/194bdaaf03590d635c937560c78f9f0ccdffd5cc24cea9f4efeb4e17e335a3bd/68747470733a2f2f706f7365722e707567782e6f72672f436f76657247656e6975732f656261792d726573742d7068702d73646b2f762f737461626c652e737667)](https://packagist.org/packages/CoverGenius/ebay-rest-php-sdk) [![MIT license](https://camo.githubusercontent.com/c2574cdc29a4576e9fe66c9443ecd526111858b1b3f3a884d4c0afbf78228deb/68747470733a2f2f706f7365722e707567782e6f72672f436f76657247656e6975732f656261792d726573742d7068702d73646b2f6c6963656e73652e737667)](https://packagist.org/packages/CoverGenius/ebay-rest-php-sdk)

Getting Started
---------------

[](#getting-started)

### Requirements

[](#requirements)

- PHP ^7.3

### Installation

[](#installation)

You can install this package by using Composer.

```
composer require covergenius/ebay-rest-php-sdk
```

### Creating the client

[](#creating-the-client)

The `create()` method for the available APIs allows a config as an array to be passed to it. This accepts the typical configuration that you would pass to the Guzzle client. See the Guzzle docs

```
use CoverGenius\EbayRestPhpSdk\Api\FulfillmentApi;

$fulfillmentApi = FulfillmentApi::create([
    'base_uri' => 'https://api.sandbox.ebay.com',
    'headers' => [
        'Authorization' => 'Bearer ACCESS_TOKEN',
    ]
]);
```

Alternatively, you can create a new GuzzleHttp Client instance to pass into the API class' constructor.

```
use CoverGenius\EbayRestPhpSdk\Api\FulfillmentApi;
use GuzzleHttp\Client;

$client = new Client([
    'base_uri' => 'https://api.sandbox.ebay.com',
    'headers' => [
        'Authorization' => 'Bearer ACCESS_TOKEN',
    ]
]);

$fulfillmentApi = new FulfillmentApi($client);
```

Available APIs
--------------

[](#available-apis)

### Fulfillment API

[](#fulfillment-api)

-

Accessing the response
----------------------

[](#accessing-the-response)

```
use CoverGenius\EbayRestPhpSdk\Api\FulfillmentApi;

$config = [];

$fulfillmentApi = FulfillmentApi::create($config);

$order = $fulfillmentApi->getOrder(['orderId' => 'ORDER_ID']);

// via getter
$order->offsetGet('orderId');

// via array key
$order['orderId'];
```

Testing
-------

[](#testing)

### Running tests

[](#running-tests)

Run `composer test` to test all suites. Alternatively, you can run the commands below.

```
composer test -- --filter testName

composer test -- --group groupName
```

### VCR tests

[](#vcr-tests)

#### Important

[](#important)

- You will need to generate a new access token and add it to the `EBAY_ACCESS_TOKEN` variable in your `.env` file. Using your valid access token, you may delete a vcr tape associated with the test you want to re-record.
- Resource IDs such as the `orderId`, `refundId` etc. may need to be updated if they do not exist in the sandbox account you're using for re-recording tests.

#### Steps

[](#steps)

1. Delete the old VCR file associated with the test you want to re-record.
2. Re-run your tests.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~699 days

Total

2

Last Release

1113d ago

Major Versions

v1.0.0 → v2.0.02023-05-02

PHP version history (2 changes)v1.0.0PHP ^7.3

v2.0.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e9de682c5c2b94f9cfe55e59e3fe71ebd49c01c011150afe7f564049c68ca3e1?d=identicon)[itsjeffro](/maintainers/itsjeffro)

![](https://www.gravatar.com/avatar/842f2fe17a177b8b03cb7c22af005de66aec1783ef4d9e183fa4f4e88e7fa722?d=identicon)[artem\_covergenius](/maintainers/artem_covergenius)

---

Top Contributors

[![fernandocoronatomf](https://avatars.githubusercontent.com/u/1309374?v=4)](https://github.com/fernandocoronatomf "fernandocoronatomf (1 commits)")[![itsjeffro](https://avatars.githubusercontent.com/u/35202091?v=4)](https://github.com/itsjeffro "itsjeffro (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/covergenius-ebay-rest-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/covergenius-ebay-rest-php-sdk/health.svg)](https://phpackages.com/packages/covergenius-ebay-rest-php-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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