composer require wsdl2phpgenerator/wsdl2phpgenerator
<?php require 'vendor\autoload.php'; $generator = new \Wsdl2PhpGenerator\Generator(); $generator->generate( new \Wsdl2PhpGenerator\Config(array( 'inputFile' => 'http://www.cpami.gov.tw/opendata/wsdl/fd2_wsdl.xml', 'outputDir' => 'output' )) );