Skip to content

An asynchronous SOAP client build on top of Guzzle.

License

Notifications You must be signed in to change notification settings

Trixpua/async-soap-guzzle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asynchronous SOAP client

Build Status Scrutinizer Code Quality codecov.io

An asynchronous SOAP client build on top of Guzzle. The SoapClient implements meng-tian/php-async-soap.

Requirement

PHP 5.5 --enablelibxml --enable-soap

Install

composer require meng-tian/async-soap-guzzle

Usage

use GuzzleHttp\Client;
use Meng\AsyncSoap\Guzzle\Factory;

$factory = new Factory();
$client = $factory->create(new Client(), 'http://www.webservicex.net/Statistics.asmx?WSDL');

// async call
$promise = $client->callAsync('GetStatistics', [['X' => [1,2,3]]]);
$result = $promise->wait();

// sync call
$result = $client->call('GetStatistics', [['X' => [1,2,3]]]);

// magic method
$promise = $client->GetStatistics(['X' => [1,2,3]]);
$result = $promise->wait();

License

This library is released under MIT license.

About

An asynchronous SOAP client build on top of Guzzle.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%