PHP code example of dwendrich / expressive-soap-middleware

1. Go to this page and download the library: Download dwendrich/expressive-soap-middleware 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/ */

    

dwendrich / expressive-soap-middleware example snippets


$app->route(
    '/path-to-service',
    'MyServiceClass\SoapController',
    ['GET', 'POST'],
    'my_service'
);

return [
    'soap_controller' => [
       'MyServiceClass\SoapController' => [
           // provide the fully qualified class name which implements the service methods
           'class' => MyServiceClass::class,

           // provide optional soap server options
           'server_options' => [],
       ],
   ],
];