PHP Classes

File: vendor/php2wsdl/php2wsdl/README.md

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   vendor/php2wsdl/php2wsdl/README.md   Download  
File: vendor/php2wsdl/php2wsdl/README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of vendor/php2wsdl/php2wsdl/README.md
Date: 1 year ago
Size: 1,680 bytes
 

Contents

Class file image Download

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 = "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.