Create WSDL files form PHP classes.
0.6.1 2019-05-28 20:48 UTC
Create WSDL files from PHP classes.
$ composer require php2wsdl/php2wsdl
$class = "Vendor\\MyClass"; $serviceURI = "http://www.myservice.com/soap"; $wsdlGenerator = new PHP2WSDL\PHPClass2WSDL($class, $serviceURI); // Generate the WSDL from the class adding only the public methods that have @soap annotation. $wsdlGenerator->generateWSDL(true); // Dump as string $wsdlXML = $wsdlGenerator->dump(); // Or save as file $wsdlXML = $wsdlGenerator->save('foo/example.wsdl');
If you discover any security related issues, please email instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.