toxiccrack/ebay-sdk-php-laravel

PHP的eBay SDK。dts/ebay-sdk-php的分支,支持PHP 8和Laravel 10。

dev-master 2023-10-05 08:06 UTC

This package is auto-updated.

Last update: 2024-09-05 10:04:36 UTC


README

这是由BenMorel/ebay-sdk-php (https://github.com/BenMorel/ebay-sdk-php) 改进的@benmorel的分支,而BenMorel/ebay-sdk-php是原dts/ebay-sdk-php (@davidtsadler)的分支,支持PHP 7.3、PHP 7.4和PHP 8,并与Laravel 10兼容。

原始项目已于2020年2月正式放弃。

Build Status Latest Stable Version Total Downloads License

此项目允许PHP开发者在PHP代码中使用eBay API,并使用如Finding、Trading、Shopping等服务构建软件。

这是一个由David T. Sadler最初开发的个人项目,他决定创建这个项目来弥补官方SDK的不足。该项目绝不会被eBay认可、赞助或维护。

特性

要求

  • PHP 7.2+或PHP 8.0+,以下扩展
    • curl
    • libxml
  • 64位版本
  • 在cURL扩展中启用SSL,以便可以进行https请求。

安装

SDK可以使用Composer安装。

composer require toxiccrack/ebay-sdk-php-laravel

示例

获取官方eBay时间

<?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')
);

更多示例可以在ebay-sdk-examples存储库中找到。

许可证

根据Apache Public License 2.0授权。

版权所有2016 David T. Sadler。