misch717/php2wsdl

Create WSDL files from PHP classes.

0.8 2022-09-14 13:58 UTC

This package is auto-updated.

Last update: 2024-04-19 14:50:38 UTC


README

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

Create WSDL files from PHP classes.

Install

Via Composer

$ composer require misch717/php2wsdl

Usage

$class = "Vendor\\MyClass";
$serviceURI = "http://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

$ 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.