Ratings | | Unique User Downloads | | Download Rankings |
![Star](https://files.phpclasses.org/graphics/phpclasses/star.png) ![Star](https://files.phpclasses.org/graphics/phpclasses/star.png) ![Star](https://files.phpclasses.org/graphics/phpclasses/star.png) 66% | | Total: 16,707 | | All time: 49 This week: 52![Down](https://files.phpclasses.org/graphics/phpclasses/down.png) |
|
Description | | Author |
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. | |
![Picture of Protung Dragos Picture of Protung Dragos](https://files.phpclasses.org/graphics/unknown.gif) |
|
Innovation award
![Innovation award](https://files.phpclasses.org/graphics/phpclasses/innovation-award-logo.png) Nominee: 3x |
|
Details
PHP2WSDL
![Total Downloads](https://img.shields.io/packagist/dt/php2wsdl/php2wsdl.svg?style=flat-square)
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.
|
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.