This repository is no longer actively maintained and has been archived.
This project contains several examples of using the eBay SDK for PHP.
- PHP 5.3.3 or greater with the following extensions:
- cURL
- libxml
- SSL enabled on the cURL extension so that https requests can be made.
-
Download the project.
git clone https://github.com/davidtsadler/ebay-sdk-examples.git
-
From the
ebay-sdk-examples
directory install Composer with:curl -sS https://getcomposer.org/installer | php
-
Install the dependencies.
php composer.phar install
All the examples load configuration settings from a configuration.php
file located in the root of the project directory. This file can be created by running the following command inside the ebay-sdk-examples
directory:
cp configuration.php.example configuration.php
Edit the resulting configuration.php
file and specify your eBay application keys. Ensure that you enter values for both the sandbox and production enviroments.
Be careful not to commit the configuration.php
file into an SCM repository as you risk exposing your eBay application keys to more people than intended.
There are several examples for each service that the SDK supports and they are listed in the README
file for each service.
To run an example from the command line use the php
command followed by the name of the example file.
php finding/01-simple-keywords-search.php
Copyright 2014 David T. Sadler
Licensed under the Apache Public License 2.0.