Skip to content

A well-working PHP EBAY SDK for the trading, shopping, and finding API

License

Notifications You must be signed in to change notification settings

michabbb/php-ebay-sdk

 
 

Repository files navigation

This is a simple SDK for the eBay APIs: trading, shopping, finding

src_findinng and src_trading and src_shopping have been created with https://github.com/WsdlToPhp/PackageGenerator the rest are wrappers to make this auto-generated stuff working.

To generate the Classes for the Shopping API:

# this is a linux alias
ebayShoppingwsdl2php() {
        docker run --rm -it -v $HOME/.ssh:/root/.ssh \
        -v /etc/localtime:/etc/localtime:ro \
        -v /tmp:/tmp \
        -v $HOME/.composer:/root/.composer \
        -v $HOME/ebaysdk/shopping:/var/www \
        --name ebayShoppingwsdl2php \
        -w /app \
        mikaelcom/wsdltophp:latest \
        generate:package \
        --urlorpath="/var/www/shoppingservice.wsdl" \
        --destination="/var/www/" \
        --gathermethods=none \
        --composer-name="macropage/php-ebay-sdk" \
        --namespace "macropage\\ebaysdk\\shopping" \
        $@
}

run with: ebayShoppingwsdl2php --force

notice: you have to manually download the shoppingservice.wsdl and remove some <xs:appinfo> tags, you will see the errors if you try it the first time without any modifications.

To generate the classes for the Trading API:

# this is a linux alias
ebayTradingwsdl2php() {
        docker run --rm -it -v $HOME/.ssh:/root/.ssh \
        -v /etc/localtime:/etc/localtime:ro \
        -v /tmp:/tmp \
        -v $HOME/.composer:/root/.composer \
        -v $HOME/ebaysdk/trading:/var/www \
        --name ebayTradingwsdl2php \
        -w /app \
        mikaelcom/wsdltophp:latest \
        generate:package \
        --urlorpath="http://developer.ebay.com/webservices/latest/ebaysvc.wsdl" \
        --destination="/var/www/" \
        --gathermethods=none \
        --composer-name="macropage/php-ebay-sdk" \
        --namespace "macropage\\ebaysdk\\trading" \
        $@
}

run with: ebayTradingwsdl2php --force

to get an idea, how it´s working, take look into test.php.

API Version
Trading 1203
Shopping 1199
Finding 1.13.0

About

A well-working PHP EBAY SDK for the trading, shopping, and finding API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages