This project is based on Ebay SDK written by David T. Sadler to make up for the lack of an official SDK for PHP. (It is in no way endorsed, sponsored or maintained by eBay).
After original repository was archived, and no longer supported, I've created this repository from copy of Ebay SDK. To keep improving and maintaining SDK for eBay API.
This project enables PHP developers to use the eBay API in their PHP code, and build software using services such as Finding, Trading, Shopping, etc. You can get started by installing the SDK via Composer and by following the Basic Usage Guide.
This is a personal project that has been maintained by me, Bohdan B., to make work for PHP developer with eBay API more efficient.
- Compatible with PHP 5.5 or greater.
- Easy to install with Composer.
- Compliant with PSR-1, PSR-2 and PSR-4.
- User Guides - Getting started guide and in-depth information.
- Examples - Several examples of using the SDK.
- @bosston812 - Follow on Twitter for announcements of releases, important changes and so on.
- PHP 5.5 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.
-
Install Composer.
curl -sS https://getcomposer.org/installer | php
-
Install the SDK.
php composer.phar require bosston812/ebay-api-sdk-php
-
Require Composer's autoloader by adding the following line to your code.
require 'vendor/autoload.php';
<?php
require 'vendor/autoload.php';
use \DTS\eBaySDK\Shopping\Services;
use \DTS\eBaySDK\Shopping\Types;
// Create the service object.
$service = new Services\ShoppingService();
// Create the request object.
$request = new Types\GeteBayTimeRequestType();
// Send the request to the service operation.
$response = $service->geteBayTime($request);
// Output the result of calling the service operation.
printf("The official eBay time is: %s\n", $response->Timestamp->format('H:i (\G\M\T) \o\n l jS Y'));
- Be well maintained.
Licensed under the Apache Public License 2.0.
Copyright 2020 Bohdan B.