professionalweb / php2wsdl
Create WSDL files form PHP classes.
Installs: 2 096
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 25
pkg:composer/professionalweb/php2wsdl
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.