Skip to content
Simple utility and class library for generating php classes from a wsdl file.
PHP Shell
Pull request Compare This branch is 1 commit ahead, 360 commits behind wsdl2phpgenerator:master.
Latest commit 918e753 Sep 21, 2013 @walle Update README.md
Failed to load latest commit information.
conf Update translations Apr 7, 2011
lib Updated code style to resemble PSR2 as closely as possible. Mar 22, 2013
src Updated code style to resemble PSR2 as closely as possible. Mar 22, 2013
tests Updated code style to resemble PSR2 as closely as possible. Mar 22, 2013
.travis.yml Added support for code coverage analysis using coveralls Jun 5, 2013
CHANGES Update changes Apr 7, 2011
LICENSE
README.md Update README.md Sep 21, 2013
composer.json Added support for code coverage analysis using coveralls Jun 5, 2013
generate.php Update generate.php Jun 3, 2013
phpunit.xml.dist
wsdl2php Uses /usr/bin/env to check for the correct php interpreter. Replaced … Jan 10, 2013
wsdl2php.bat
wsdl2php.php Updated code style to resemble PSR2 as closely as possible. Mar 22, 2013

README.md

wsdl2phpgenerator

The main repository have been moved to wsdl2phpgenerator/wsdl2phpgenerator

Build Status Coverage Status

Simple WSDL to PHP classes converter. Takes a WSDL file and outputs class files ready to use.

Uses the MIT licence

Contributors

Originally developed by Fredrik Wallgren, https://github.com/walle/wsdl2phpgenerator

Includes bugfixes and improvements from:

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.

Usage

Use the executable or the Generator class directly.

Executable

./wsdl2php -i input.wsdl -o /tmp/my/directory/wsdl

The directory is created if possible.

usage listed under ./wsdl2php -h

Code

<?php
require_once __DIR__."/path/here/Generator.php";

$generator = Generator::instance();
$generator->setDisplayCallback( function( $msg ) {
    echo "{$msg}\n";
});
$generator->generate( 
    new Config( SOAPSERVICE, SOAPDIR ) 
);
?>
Something went wrong with that request. Please try again.