professionalweb / php2wsdl
Create WSDL files form PHP classes.
0.7.1
2017-01-13 05:23 UTC
Requires
- php: >=5.4
- wingu/reflection: ~1.0
Requires (Dev)
README
Create WSDL files form PHP classes.
Install
Via Composer
$ composer require professionalweb/php2wsdl
Usage
$class = "Vendor\\MyClass"; $serviceURI = "http://www.myservice.com/soap"; $serviceName = 'testService'; $wsdlGenerator = new PHP2WSDL\PHPClass2WSDL($class, $serviceURI, $serviceName); $wsdlGenerator->addClass(AnotherClass::class); // Generate thw WSDL from the class adding only the public methods that have @soap annotation. $wsdlGenerator->generateWSDL(); $wsdlXML = $wsdlGenerator->dump();
Testing
$ phpunit
Security
If you discover any security related issues, please email instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.