xint0 / soap-service-client
Extend SoapClient
0.1.1
2022-02-28 09:00 UTC
Requires (Dev)
- mockery/mockery: ^1.5
README
xint0/soap-service-client
is a library that contains SoapServiceClient
class that extends the base SoapClient
class.
Installation
Use composer to install xint0/soap-service-client
.
composer require xint0/soap-service-client
Usage
<?php
use Xint0\Soap\SoapServiceClient;
use Psr\Log\LoggerInterface;
/** @var LoggerInterface A logger. */
$logger;
$wsdl = 'https://example.com/route_to_wsdl';
$options = [
'logger' => $logger, // You can pass a LoggerInterface to log debug messages on SOAP calls and errors.
];
$soapClient = new SoapServiceClient($wsdl, $options);
$actionParameters = [
'param' => 'value',
];
$result = $soapClient->SoapAction($actionParameters);
Contributing
Merge requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.