PHP Classes

PHP WSDL Generator: Generate WSDL from PHP classes code

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 16,707 All time: 49 This week: 52Down
Version License PHP version Categories
php2wsdl 0.19MIT/X Consortium ...5.4PHP 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.

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
Name: Protung Dragos <contact>
Classes: 10 packages by
Country: Romania Romania
Innovation award
Innovation award
Nominee: 3x

 

Details

PHP2WSDL

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

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.


  Files folder image Files (36)  
File Role Description
Files folder image.github (1 directory)
Files folder imagesrc (2 files)
Files folder imagetests (1 file, 3 directories)
Accessible without login Plain text file .gitignore Data Auxiliary data
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

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 Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:16,707
This week:0
All time:49
This week:52Down
User Ratings User Comments (11)
 All time
Utility:90%StarStarStarStarStar
Consistency:77%StarStarStarStar
Documentation:66%StarStarStarStar
Examples:-
Tests:68%StarStarStarStar
Videos:-
Overall:66%StarStarStarStar
Rank:542
 
wasted time,the smallest example fails
6 years ago (Alex Solano)
20%StarStar
completely useless time waster.
10 years ago (kissmyassbastards)
0%Star
Nice kickstart for PHP5 SOAP.
13 years ago (vesperto)
67%StarStarStarStar
Must manually edit the generated WSDL file to add location at...
14 years ago (Zhengsheng Zhou)
75%StarStarStarStar
Brilliant work!
15 years ago (Ian)
70%StarStarStarStar
Excellent
15 years ago (kishore kumar)
80%StarStarStarStarStar
function test22222 ($p1, $p2) { return array($p1, $p2); }...
15 years ago (liuxiulin)
75%StarStarStarStar
This saved me a lot of time.
15 years ago (Matt Lintz)
80%StarStarStarStarStar
Support for Arrays would be nice.
16 years ago (Rob Janssen)
55%StarStarStar
really nice tool! -inherited public methods won't work :(
16 years ago (spoom)
70%StarStarStarStar
Excellent resource the produced wsdl accurately creates a cli...
16 years ago (Jon Diamond)
77%StarStarStarStar