wsdl2php - takes a WSDL document and generates PHP code from which to implement a service. The WSDL document must have a valid portType element, but it does not need to contain a binding element or a service element. It is always assumed the given doc-lit WSDLs "unwrap" nicely
Using the optional arguments you can customize the generated code.
If you do not yet have composer, install it like this:
curl -s http://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin
Create a composer.json
file:
{
"require": {
"besimple/wsdl2php": "dev-master"
}
}
Now you are ready to install the library:
php /usr/local/bin/composer.phar install
php bin/wsdl2php.php -w"myservice.wsdl"