php2wsdl / php2wsdl
Create WSDL files form PHP classes.
Installs: 412 670
Dependents: 4
Suggesters: 0
Security: 0
Stars: 46
Watchers: 9
Forks: 24
Open Issues: 5
Requires
- php: >=7.2
- wingu/reflection: ~1.0
Requires (Dev)
- scrutinizer/ocular: ~1.1
- symfony/phpunit-bridge: ^6.0
README
Create WSDL files from PHP classes.
Install
Via Composer
$ composer require php2wsdl/php2wsdl
Usage
$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. $wsdlGenerator->generateWSDL(true); // Dump as string $wsdlXML = $wsdlGenerator->dump(); // Or save as file $wsdlXML = $wsdlGenerator->save('foo/example.wsdl');
Testing
$ vendor/bin/simple-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.