|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2023-12-03 (3 days ago) || 61%||Total: 16,687 This week: 13||All time: 49 This week: 18|
This package can be used to generate a Web Services Definition Language (WSDL) document from the code of a class that implements Web services calls.
It parses the code of a given PHP class script files and generates a WSDL definition from the list of the class functions.
Certain functions may be skipped to not be included in the WSDL definition based on the function access type.
The generated WSDL may be saved to a given file, returned as a string or served for download.
Create WSDL files from PHP classes.
$ composer require php2wsdl/php2wsdl
$class = "Vendor\\MyClass";
$serviceURI = "https://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.
// 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.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.