rajarizwan2007/ebay-php

Updated version of dts/ebay-sdk-php package.

dev-master 2023-12-11 16:31 UTC

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

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.

  1. Install Composer.

    curl -sS https://getcomposer.org/installer | php
    
  2. Install the SDK.

    php composer.phar require rajarizwan2007/ebay-php
    
  3. 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.