-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenerate.sh
executable file
·43 lines (39 loc) · 1.66 KB
/
generate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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.coliposte.fr/tracking-chargeur-cxf/TrackingServiceWS?wsdl" \
--destination=$DEST \
--composer-name="wsdltophp/package-colissimo-tracking" \
--composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
--composer-settings="require-dev.phpstan/phpstan:^1.4" \
--composer-settings="scripts.phpstan:vendor/bin/phpstan analyze src --level=3" \
--composer-settings="type:library" \
--composer-settings="license:MIT" \
--addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
--soapclient="SoapClient\SoapClientBase" \
--namespace="ColissimoTracking";
# generate package
php wsdltophp.phar generate:package \
--urlorpath="https://www.coliposte.fr/tracking-chargeur-cxf/TrackingServiceWS?wsdl" \
--destination=$DEST \
--composer-name="wsdltophp/package-colissimo-tracking" \
--composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
--composer-settings="require-dev.phpstan/phpstan:^1.4" \
--composer-settings="scripts.phpstan:vendor/bin/phpstan analyze src --level=3" \
--composer-settings="type:library" \
--composer-settings="license:MIT" \
--addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
--soapclient="SoapClient\SoapClientBase" \
--namespace="ColissimoTracking" \
--force;