-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgenerate.sh
executable file
·57 lines (53 loc) · 2.44 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# 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://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl" \
--destination=$DEST \
--composer-name="wsdltophp/package-colissimo-postage" \
--composer-settings="type:library" \
--composer-settings="license:MIT" \
--composer-settings="authors.0.name:Mikael DELSOL" \
--composer-settings="authors.0.email:[email protected]" \
--composer-settings="authors.0.homepage:https://www.wsdltophp.com" \
--composer-settings="authors.0.role:owner" \
--composer-settings="authors.1.name:Maxime Veber" \
--composer-settings="authors.1.email:[email protected]" \
--composer-settings="authors.1.role:Contributor" \
--composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
--composer-settings="require.require-dev.phpstan/phpstan:^1.4" \
--composer-settings="scripts.phpstan:vendor/bin/phpstan analyze src --level=3" \
--addcomments="author:WsdlToPhp <[email protected]>" \
--soapclient="SoapClient\SoapClientBase" \
--namespace="ColissimoPostage";
# generate package
php wsdltophp.phar generate:package \
--urlorpath="https://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl" \
--destination=$DEST \
--composer-name="wsdltophp/package-colissimo-postage" \
--composer-settings="type:library" \
--composer-settings="license:MIT" \
--composer-settings="authors.0.name:Mikael DELSOL" \
--composer-settings="authors.0.email:[email protected]" \
--composer-settings="authors.0.homepage:https://www.wsdltophp.com" \
--composer-settings="authors.0.role:owner" \
--composer-settings="authors.1.name:Maxime Veber" \
--composer-settings="authors.1.email:[email protected]" \
--composer-settings="authors.1.role:Contributor" \
--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" \
--addcomments="author:WsdlToPhp <[email protected]>" \
--soapclient="SoapClient\SoapClientBase" \
--namespace="ColissimoPostage" \
--force;