nekoos/laravel-wsopp

WSDL to Object PHP package generator by artisan

v1.0.1 2019-10-17 18:05 UTC

This package is auto-updated.

Last update: 2024-11-13 11:16:03 UTC


README

Description

WSDL to Object PHP package generator by artisan

Install

composer require nekoos/wsopp

Usage

php artisan wsopp:generate --wsdl uri-contact-wsdl [--namespace NamespaceName] [--target=target-directory]

Example

php artisan wsopp:generate --wsdl http://www.dneonline.com/calculator.asmx?WSDL --namespace Example
use App\Service\Soap\Example\Add;

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

Lumen

subscribe service provider in class app/Console/Kernel.php

protected $commands = [
    NekoOs\Console\Commands\WsOpp\GenerateCommand::class,
];