PHP code example of aleplusplus / soapclient-curl-php

1. Go to this page and download the library: Download aleplusplus/soapclient-curl-php 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/ */

    

aleplusplus / soapclient-curl-php example snippets


use SoapClientCurl\SoapClientRequest;

// Url Soap Server Example
$url = '<SOAP_SERVER_URL>';

$body = '<SOAP_SCHEMA>';

$headers = array('Content-Type: text/xml; charset=utf-8', 'Content-Length: '.strlen($body));

$result = SoapClientRequest::send($url, $headers, $body);

print_r($result);

$ composer