xint0 / soap-service-client
Extend SoapClient
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/xint0/soap-service-client
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.