goetas-webservices / wsdl-reader
Pure PHP WSDL parser
Installs: 318 827
Dependents: 6
Suggesters: 0
Security: 0
Stars: 10
Watchers: 6
Forks: 17
Open Issues: 4
Requires
- php: ^7.1|^8.0
- ext-dom: *
- goetas-webservices/xsd-reader: ^0.3
- symfony/event-dispatcher: ^2.4|^3.0|^4.0|^5.0
- symfony/event-dispatcher-contracts: ^1.1|^2.0
Requires (Dev)
- jmikola/wildcard-event-dispatcher: >=1.1.2|^2.0
- phpunit/phpunit: ^8.0|^9.0
README
PHP XSD Reader
Read any WSDL 1.1 (XSD) programatically with PHP.
Installation
There are two recommended ways to install the wsdl-reader
via Composer:
- using the
composer require
command:
composer require 'goetas-webservices/wsdl-reader'
- adding the dependency to your
composer.json
file:
"require": { .. "goetas-webservices/wsdl-reader" : "~0.1", .. }
Getting started
use GoetasWebservices\XML\WSDLReader\DefinitionsReader; $reader = new DefinitionsReader(); $definitions = $reader->readFile("http://www.example.com/exaple.wsdl"); // $definitions is instance of GoetasWebservices\XML\WSDLReader\Wsdl\Definitions; // Now you can navigate the entire WSDL structure foreach ($definitions->getServices() as $service){ } foreach ($definitions->getProtTypes() as $portType){ } foreach ($definitions->getBindings() as $binding){ } foreach ($definitions->getMessages() as $message){ }
Note
I'm sorry for the terrible english fluency used inside the documentation, I'm trying to improve it. Pull Requests are welcome.