nekoos / laravel-wsopp
WSDL to Object PHP package generator by artisan
Installs: 1 616
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Requires
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, ];