PHP code example of igor-noskov / logging-soap-client
1. Go to this page and download the library: Download igor-noskov/logging-soap-client 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/ */
igor-noskov / logging-soap-client example snippets
use IgorNoskov\LoggingSoapClient\LoggingSoapClient;
use Psr\Log\LoggerInterface;
class Foo
{
public function doSomething(string $wsdl, LoggerInterface $logger)
{
$soapClient = new LoggingSoapClient(new SoapClient($wsdl, ['trace' => true]), $logger);
// do something useful
}
}