Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple utility and class library for generating php classes from a wsdl file.

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 conf
Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 tests
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 CHANGES
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
Octocat-spinner-32 generate.php
Octocat-spinner-32 phpunit.xml.dist
Octocat-spinner-32 wsdl2php
Octocat-spinner-32 wsdl2php.bat
Octocat-spinner-32 wsdl2php.php
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.