Recommend this page to a friend! |
Download .zip |
Info | View files (36) | Download .zip | Reputation | Support forum (32) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-01-09 (4 days ago) | 61% | Total: 16,690 This week: 6 | All time: 49 This week: 50 |
Version | License | PHP version | Categories | |||
php2wsdl 0.19 | MIT/X Consortium ... | 5.4 | PHP 5, Web services |
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. |
|
Create WSDL files from PHP classes.
Via Composer
$ 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.
$wsdlGenerator->generateWSDL(true);
// Dump as string
$wsdlXML = $wsdlGenerator->dump();
// Or save as file
$wsdlXML = $wsdlGenerator->save('foo/example.wsdl');
$ vendor/bin/simple-phpunit
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.
Files |
File | Role | Description | ||
---|---|---|---|---|
.github (1 directory) | ||||
src (2 files) | ||||
tests (1 file, 3 directories) | ||||
.gitignore | Data | Auxiliary data | ||
.scrutinizer.yml | Data | Auxiliary data | ||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE.md | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Expected (4 files, 1 directory) | ||||
Fixtures (4 files, 1 directory) | ||||
Stub (3 files) | ||||
PHP2WSDLTest.php | Test | Unit test script |
Files | / | tests | / | Expected |
File | Role | Description | ||
---|---|---|---|---|
DataProvider (7 files) | ||||
TestGenerateWSDLFo...hAllComponents.wsdl | Data | Auxiliary data | ||
testGenerateWSDLWithStylesheet.wsdl | Data | Auxiliary data | ||
TestSimpleClassWit...TagAnnotations.wsdl | Data | Auxiliary data | ||
TestSimpleClassWit...TagAnnotations.wsdl | Data | Auxiliary data |
Files | / | tests | / | Expected | / | DataProvider |
File | Role | Description |
---|---|---|
TestElementWithMaxOccurrences.wsdl | Data | Auxiliary data |
TestElementWithMin...currencesOfOne.wsdl | Data | Auxiliary data |
TestElementWithMinOccurrences.wsdl | Data | Auxiliary data |
TestMethodInputArrayOfObjects.wsdl | Data | Auxiliary data |
TestMethodInputArrayOfScalars.wsdl | Data | Auxiliary data |
TestMethodInputBase64Binary.wsdl | Data | test expectation |
TestMethodInputWithScalars.wsdl | Data | Auxiliary data |
Files | / | tests | / | Fixtures |
File | Role | Description | ||
---|---|---|---|---|
DataProvider (7 files) | ||||
TestGenerateWSDLFo...thAllComponents.php | Aux. | Auxiliary script | ||
TestGenerateWSDLWithStylesheet.php | Aux. | Auxiliary script | ||
TestSimpleClassWit...pTagAnnotations.php | Aux. | Auxiliary script | ||
TestSimpleClassWit...pTagAnnotations.php | Aux. | Auxiliary script |
Files | / | tests | / | Fixtures | / | DataProvider |
File | Role | Description |
---|---|---|
TestElementWithMaxOccurrences.php | Aux. | Auxiliary script |
TestElementWithMin...ccurrencesOfOne.php | Aux. | Auxiliary script |
TestElementWithMinOccurrences.php | Aux. | Auxiliary script |
TestMethodInputArrayOfObjects.php | Aux. | Auxiliary script |
TestMethodInputArrayOfScalars.php | Aux. | Auxiliary script |
TestMethodInputBase64Binary.php | Class | test fixture |
TestMethodInputWithScalars.php | Aux. | Auxiliary script |
Files | / | tests | / | Stub |
File | Role | Description |
---|---|---|
MaxOccurrences.php | Aux. | Auxiliary script |
MinMaxOccurrencesOfOne.php | Aux. | Auxiliary script |
MinOccurrences.php | Aux. | Auxiliary script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (11) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.