Create WSDL files form PHP classes.

0.7.1 2017-01-13 05:23 UTC

This package is auto-updated.

Last update: 2024-03-29 03:13:22 UTC


README

Latest Stable Version Build Status Code Climate Coverage Status License Latest Unstable Version

Create WSDL files form PHP classes.

Install

Via Composer

$ composer require professionalweb/php2wsdl

Usage

$class = "Vendor\\MyClass";
$serviceURI = "http://www.myservice.com/soap";
$serviceName = 'testService';
$wsdlGenerator = new PHP2WSDL\PHPClass2WSDL($class, $serviceURI, $serviceName);
$wsdlGenerator->addClass(AnotherClass::class);
// Generate thw WSDL from the class adding only the public methods that have @soap annotation.
$wsdlGenerator->generateWSDL();
$wsdlXML = $wsdlGenerator->dump();

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.