定制 steverhoades/ebay-sdk-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

steverhoades/ebay-sdk-php

最新稳定版本:v1.0.1

Composer 安装命令:

composer require steverhoades/ebay-sdk-php

包简介

An eBay SDK for PHP. Fork of dts/ebay-sdk-php with support for PHP 8.

README 文档

README

This is a fork of the original dts/ebay-sdk-php by @davidtsadler, with support for PHP 7.3, PHP 7.4 and PHP 8, and compatibility with Guzzle 7.

The original project by David T. Sadler was abandoned in February 2020 and was subsequently updated by Ben Morel. After speaking with David I have decided to take over the project until eBay moves to an entirely Restful API.

--

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 was originally developed by David T. Sadler, who 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

Resources

  • Examples - Several examples of using the SDK.

Requirements

  • PHP 7.4 or PHP 8 with the following extensions:
    • curl
    • libxml
  • 64 bit version 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:

composer require steverhoades/ebay-sdk-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.

Copyright 2016 David T. Sadler. Copyright 2021 Steve Rhoades

统计信息

  • 总下载量: 106
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: (Apache-2.0 and MIT) ed734fe078526c792fc774b363b0296630aa1bde
  • 更新时间: 2021-10-27