orzcc / ebay-sdk-php
An eBay SDK for PHP. Use the eBay API in your PHP projects.
Requires
- php: >=5.5
- guzzlehttp/guzzle: ^6.2.1|^7.0
- guzzlehttp/promises: 0.1.1|^1.3
- guzzlehttp/psr7: ^1.7|^2.0
Requires (Dev)
- phpunit/phpunit: ~4.0
- squizlabs/php_codesniffer: 2.*
- dev-master
- 18.0.14
- 18.0.13
- 18.0.12
- 18.0.11
- 18.0.10
- 18.0.9
- 18.0.8
- 18.0.7
- 18.0.6
- 18.0.5
- 18.0.4
- 18.0.3
- 18.0.2
- 18.0.1
- 18.0.0
- 17.0.0
- 16.0.0
- 15.0.0
- 14.0.0
- 13.1.0
- 13.0.3
- 13.0.2
- 13.0.1
- 13.0.0
- 12.0.1
- 12.0.0
- 11.0.0
- 10.0.0
- 9.0.1
- 9.0.0
- 8.0.0
- 7.0.0
- 6.0.0
- 5.0.0
- 4.0.1
- 4.0.0
- 3.0.0
- 2.0.0
- 1.0.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.1
- 0.1.0
- dev-develop
This package is auto-updated.
Last update: 2024-12-17 15:46:45 UTC
README
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.
Features
- Compatible with PHP 5.5 or greater.
- Easy to install with Composer.
- Compliant with PSR-1, PSR-2 and PSR-4.
Resources
- User Guides - Getting started guide and in-depth information.
- Examples - Several examples of using the SDK.
- Google Group - Join for support with the SDK.
- @devbaydotnet - Follow on Twitter for announcements of releases, important changes and so on.
Requirements
- 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.
Installation
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';
Example
Get the official eBay time
<?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'));
Project Goals
- Be well maintained.
- Be well documented.
- Be well tested.
- Be well supported with working examples.
License
Licensed under the Apache Public License 2.0.
Copyright 2016 David T. Sadler