PHP Classes
elePHPant
Icontem

File: generate.sh

Recommend this page to a friend!
  Classes of WsdlToPhp  >  PHP PayPal SDK  >  generate.sh  >  Download  
File: generate.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP PayPal SDK
Access Paypal payments API using SOAP Web services
Author: By
Last change:
Date: 7 months ago
Size: 1,164 bytes
 

Contents

Class file image Download
# get the latest wsdltophp.phar
if [ ! -f wsdltophp.phar ]; then
    echo "Download wsdltophp.phar once";
    wget https://phar.wsdltophp.com/wsdltophp.phar;
fi

# get current folder
DEST=`pwd`;

# clean current folder
rm -rf  $DEST/src/ \
        $DEST/tutorial.php \
        $DEST/composer.json \
        $DEST/composer.lock;

# package informations
php wsdltophp.phar generate:package \
    --urlorpath="https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl" \
    --destination=$DEST \
    --composer-name="wsdltophp/package-paypal" \
    --composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
    --addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
    --soapclient="\SoapClient\SoapClientBase" \
    --namespace="PayPal";

# generate package
php wsdltophp.phar generate:package \
    --urlorpath="https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl" \
    --destination=$DEST \
    --composer-name="wsdltophp/package-paypal" \
    --composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
    --addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
    --soapclient="\SoapClient\SoapClientBase" \
    --namespace="PayPal" \
    --force;