1. Go to this page and download the library: Download vaclavvanik/soap-wsdl library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vaclavvanik / soap-wsdl example snippets
declare(strict_types=1);
use VaclavVanik\Soap\Wsdl;
$wsdl = (new Wsdl\StringProvider('wsdl-in-string-variable'))->provide();
declare(strict_types=1);
use VaclavVanik\Soap\Wsdl;
$wsdl = (new Wsdl\FileProvider('my-file.wsdl'))->provide();
declare(strict_types=1);
use VaclavVanik\Soap\Wsdl;
$fileProvider = new Wsdl\FileProvider('my-file.wsdl');
$directory = '/tmp';
$ttl = 3600;
$wsdl = (new Wsdl\CacheFileProvider($fileProvider, $directory, $ttl))->provide();
declare(strict_types=1);
use VaclavVanik\Soap\Wsdl;
$fileProvider1 = new Wsdl\FileProvider('/may-be-unreachable/my-file.wsdl');
$fileProvider2 = new Wsdl\FileProvider('/should-be-reachable/my-file.wsdl');
$wsdl = (new Wsdl\ChainProvider($fileProvider1, $fileProvider2))->provide();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.