mattybaer/ebay-sdk-php
最新稳定版本:v19.1.1
Composer 安装命令:
composer require mattybaer/ebay-sdk-php
包简介
An eBay SDK for PHP with support for PHP 8. Maintained by Bibliopolis.
README 文档
README
This repository is now actively maintained by Bibliopolis.
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 project that has been developed by David T. Sadler. Bibliopolis has forked the code and will keep up to date. It is in no way endorsed, sponsored or maintained by eBay.
Plans
- Keep up to date with latest PHP version. Now Supports PHP 8.
- Add latest features required to be an eBay Developer (as of now that is the Notification API and changes to various APIs)
Requirements
- PHP 7.3 to 8+ 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 mattybaer/ebay-sdk-php -
Require Composer's autoloader by adding the following line to your code.
require 'vendor/autoload.php';
Example
Get public key
<?php require 'vendor/autoload.php'; use \DTS\eBaySDK\Notifcation\Services; use \DTS\eBaySDK\Notifcation\Types; // Fetch request headers from eBay $headers = getallheaders(); $key = base64_decode($headers['x-ebay-signature']); // Create the service object. $service = new Services\NotificationService([ 'authorization' => <AUTHORIZATION_HERE> ]); // Create the request object. $request = new Types\GetPublicKeyRestRequest(); $request->public_key_id = $key; // Send the request to the service operation. $response = $service->getPublicKey($request); // Output the result of calling the service operation. printf("Your official eBay public key is: %s\n", print_r($response, true));
License
Licensed under the Apache Public License 2.0.
Copyright 2016 David T. Sadler
统计信息
- 总下载量: 95
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: (Apache-2.0 and MIT) 61758e15c6aa8c2b5574b77659c331f53308a98b
- 更新时间: 2021-06-28