Simple WSDL to PHP classes converter. Takes a WSDL file and outputs class files ready to use.
Uses the MIT licence
Originally developed by Fredrik Wallgren, https://github.com/walle/wsdl2phpgenerator
Includes bugfixes and improvements from:
- Vardan Akopian, https://github.com/vakopian/wsdl2phpgenerator
- http://www.statik.be, https://github.com/statikbe/wsdl2phpgenerator
- Eric Colinet, https://github.com/ecolinet/wsdl2phpgenerator
- Nuth, https://github.com/nuth/wsdl2phpgenerator
- Kasper Garnæs, https://github.com/kasperg/wsdl2phpgenerator
This fork has been created in an attempt to merge changes in forks of wsdl2phpgenerator which has never made it back into the original repository.
Pull requests are very welcome.
Use the executable or the Generator class directly.
./wsdl2php -i input.wsdl -o /tmp/my/directory/wsdl
The directory is created if possible.
usage listed under ./wsdl2php -h
<?php
require_once __DIR__."/path/here/Generator.php";
$generator = Generator::instance();
$generator->setDisplayCallback( function( $msg ) {
echo "{$msg}\n";
});
$generator->generate(
new Config( SOAPSERVICE, SOAPDIR )
);
?>