This repository is no longer actively maintained and has been archived.
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 developed by me, David T. Sadler. I decided to create this project to make up for the lack of an official SDK for PHP. It is in no way endorsed, sponsored or maintained by eBay.
The SDK can be installed with Composer. Please see the Installation section of the User Guide to learn about installing through other means.
Install Composer.
curl -sS https://getcomposer.org/installer | php
Install the SDK.
php composer.phar require dts/ebay-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'));
Licensed under the Apache Public License 2.0.
Copyright 2016 David T. Sadler