Simple WSDL to PHP classes converter. Takes a WSDL file and outputs class files ready to use.
Uses the MIT licence.
Originally developed by @walle and includes bugfixes and improvements from @vakopian, @statikbe, @ecolinet, @nuth, @chriskl, @RSully, @dypa and @kasperg.
Pull requests are very welcome.
There is a mailing list for the project at https://groups.google.com/forum/#!forum/wsdl2phpgenerator
- Download wsdl2phpgenerator-2.2.2.phar from the latest release
- Run
php wsdl2phpgenerator-2.2.2.phar -i input.wsdl -o tmp/my/directory/wsdl
The directory is created if possible.
Usage is listed under ./wsdl2php -h
- Add
"wsdl2phpgenerator/wsdl2phpgenerator": "2.2.2"
to therequire
orrequire-dev
section of yourcomposer.json
file - Run
composer update
- Run
./vendor/bin/wsdl2php -i input.wsdl -o tmp/my/directory/wsdl
The directory is created if possible.
Usage is listed under ./vendor/bin/wsdl2php -h
<?php
// Map 'src' and 'lib' folders to the Wsdl2PhpGenerator namespace in your
// favorite PSR-0 compatible classloader or require the files manually.
$generator = new \Wsdl2PhpGenerator\Generator();
$generator->generate(
new \Wsdl2PhpGenerator\Config( SOAPSERVICE, SOAPDIR )
);
?>
This project aims to use semantic versioning. The following consitutes the public API:
\Wsdl2PhpGenerator\GeneratorInterface
\Wsdl2PhpGenerator\ConfigInterface
Changes to these means that the major version will be increased. Additional features and bug fixes increate minor and patch versions.