Skip to content

An eBay SDK for PHP. Use the eBay API in your PHP projects.

License

Notifications You must be signed in to change notification settings

fshch/ebay-sdk-php

 
 

Repository files navigation

EBAY-SDK-PHP

This project build on davidtsadler/ebay-sdk-php .Because the original project is dead,so I create this new project.This project is not compatible with original project.Original Readme file is renamed to README_origin.md

What is different with the original project

  • Support eBay Notifications
  • Trading API Enum Types Extends php-enum, You can use Enum types more convenient
  • Trading API upgrade to version 1131

Requirements

  • PHP 7.1 or greater with the following extensions:
    • cURL
    • libxml
  • 64 bit version of PHP recommended as there are some issues when using the SDK with 32 bit.
  • SSL enabled on the cURL extension so that https requests can be made.

Installation

The SDK can be installed with Composer.

  1. Add below code to your project composer.json

    {
           "name": "fshchh/ebay-sdk-php",
           "repositories": [
               {
                   "type": "vcs",
                   "url": "https://github.com/fshchh/ebay-sdk-php"
               }
           ],
           "require": {
               "fshchh/ebay-sdk-php": "dev"
           }
    }
    
  2. Install the SDK.

    composer install
    

Work with eBay notification

<?php

require 'vendor/autoload.php';

use \DTS\eBaySDK\Notification\Notification;

//the value of this var is the notification string received from ebay.Parts are omitted here
$notification = '<?xml version="1.0" encoding="UTF-8"?> ... </soapenv:Envelope>';
// Create the service object.
$notificationService = new Notification($notification);

// Get notification event name.
$eventName = $notificationService->getNotificationEventName();

// Get the response of the notification corresponding.Then you can deal the response like received from request
$response = $notificationService->getResponse();

Others

Please read the README_origin.md file.

License

Licensed under the Apache Public License 2.0.

Copyright 2019 fshchh

About

An eBay SDK for PHP. Use the eBay API in your PHP projects.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • PHP 99.9%
  • Makefile 0.1%