PHP code example of penblu / soap

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

    

penblu / soap example snippets


public function actions()
{
    return [
        ...,
        'myService' => [
            'class' => 'penblu\soapserver\SoapAction',
        ],
        ...,
    ];
}

/**
* Returns hello and the name that you gave
*
* @param string $name Your name
* @return string
* @soap
*/
public function getHello($name)
{
    return 'Hello ' . $name;
}

public $enableCsrfValidation = false;