rajarizwan2007 / ebay-php
Updated version of dts/ebay-sdk-php package.
Installs: 851
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 334
Open Issues: 0
Requires
- php: >=8.1
- guzzlehttp/guzzle: ~7.2
- guzzlehttp/promises: ^2.0
- guzzlehttp/psr7: ~2.0
Requires (Dev)
- phpunit/phpunit: ~10.1
- squizlabs/php_codesniffer: 4.0.x-dev
This package is auto-updated.
Last update: 2024-04-11 17:16:36 UTC
README
This repository is updated version of EBAY-SDK-PHP which was abondeded.
Features
- Compatible with PHP 8.0 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.
Requirements
- PHP 8.0 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.
-
Install Composer.
curl -sS https://getcomposer.org/installer | php
-
Install the SDK.
php composer.phar require rajarizwan2007/ebay-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'));
License
Licensed under the Apache Public License 2.0.