comsave/soap-client
Laravel-friendly SOAP client wrapper that streamlines calling SOAP services in PHP. Provides simple configuration, request/response handling, and integration helpers so you can consume WSDL-based APIs with less boilerplate in your application.
SoapClient, reducing boilerplate and improving readability in Laravel applications..env or config/).php-soap extension, XML parsers).AppServiceProvider).config/soap.php) for SOAP endpoints, WSDLs, and options.SoapClient instantiations with comsave/soap-client in existing SOAP integrations.php-soap extension (common in shared hosting but may need enabling).memory_limit or stream responses).stream_context for HTTPS).SoapClient fallback, alternative like extenso/soap-client)?AppServiceProvider:
$this->app->bind(SOAPClientInterface::class, function ($app) {
return new \Comsave\SoapClient(
config('soap.endpoints.example.wsdl'),
config('soap.options')
);
});
config/soap.php:
'endpoints' => [
'example' => [
'wsdl' => env('SOAP_EXAMPLE_WSDL'),
'options' => [
'trace' => true,
'exceptions' => true,
'timeout' => 30,
],
],
],
Soap) to simplify usage:
use Illuminate\Support\Facades\Soap;
$response = Soap::call('GetData', ['param' => 'value']);
SoapClient usage, WSDL dependencies).SoapClient calls with the package’s API in non-critical paths.config/soap.php).Mockery or PHPUnit.SoapClient constructor arguments in PHP 8.1+).return_type hints if the package lacks PHP 8 support.php-soap extension.composer.json dependencies (lock to a specific version for stability).SOAP service class (e.g., app/Services/SoapService.php).Log facade or a dedicated SOAP logger).SoapClient usage via deprecation warnings or static analysis (e.g., PHPStan).SoapClient traces.trace option and inspect raw XML in Laravel logs).timeout and connection_timeout options).SoapClient::getLastRequest()/getLastResponse() for debugging (if the package exposes these).dd() or dump() for inspecting payloads.How can I help you explore Laravel packages today?