Recommend this page to a friend! |
Download |
Info | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-01-09 (9 months ago) | 66% | Total: 16,703 This week: 1 | All time: 49 This week: 35 |
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 (36) |
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 (36) | / | src |
File | Role | Description |
---|---|---|
PHPClass2WSDL.php | Class | Class source |
WSDL.php | Class | Class source |
Files (36) | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Expected (4 files, 1 directory) | ||||
Fixtures (4 files, 1 directory) | ||||
Stub (3 files) | ||||
PHP2WSDLTest.php | Test | Unit test script |
Files (36) | / | 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 (36) | / | 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 (36) | / | 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 (36) | / | 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 (36) | / | tests | / | Stub |
File | Role | Description |
---|---|---|
MaxOccurrences.php | Aux. | Auxiliary script |
MinMaxOccurrencesOfOne.php | Aux. | Auxiliary script |
MinOccurrences.php | Aux. | Auxiliary script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
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.