PHP code example of nekoos / laravel-wsopp

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

    

nekoos / laravel-wsopp example snippets


use App\Service\Soap\Example\Add;

$calculator = new \App\Service\Soap\Example\Calculator();   
$calculator->Add(new Add(3,9))->getAddResult();

protected $commands = [
    NekoOs\Console\Commands\WsOpp\GenerateCommand::class,
];
shell script
php artisan wsopp:generate --wsdl uri-contact-wsdl [--namespace NamespaceName] [--target=target-directory]
shell script
php artisan wsopp:generate --wsdl http://www.dneonline.com/calculator.asmx?WSDL --namespace Example