PHP Classes

File: generate.sh

Recommend this page to a friend!
  Classes of WsdlToPhp  >  PHP Microsoft EWS Office 365  >  generate.sh  >  Download  
File: generate.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Microsoft EWS Office 365
Access Office 365 Exchange Web Services via SOAP
Author: By
Last change:
Date: 4 years ago
Size: 1,190 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=$DEST"/wsdl/services.updated.wsdl" \
    --destination=$DEST \
    --composer-name="wsdltophp/package-ews365" \
    --composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
    --composer-settings="require-dev.wsdltophp/packagegenerator:~2.0" \
    --addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
    --soapclient="\SoapClient\SoapClientBase" \
    --prefix="Ews";

# generate package
php wsdltophp.phar generate:package \
    --urlorpath=$DEST"/wsdl/services.updated.wsdl" \
    --destination=$DEST \
    --composer-name="wsdltophp/package-ews365" \
    --composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
    --addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
    --soapclient="\SoapClient\SoapClientBase" \
    --prefix="Ews" \
    --force;
For more information send a message to info at phpclasses dot org.