mbamarante / cakesoap
Soap plugin for CakePHP 4.x
Installs: 330
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 6
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=7.2.0
- cakephp/cakephp: >=4.0.0
Requires (Dev)
- cakephp/cakephp-codesniffer: dev-master
- phpunit/phpunit: *
This package is auto-updated.
Last update: 2024-10-29 06:06:37 UTC
README
Requirements
- CakePHP 4.x
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require mbamarante/cakesoap
You can also add "mbamarante/cakesoap" : "dev-master"
to require
section in your application's composer.json
. Use for latest updates.
-- or --
You can also add "mbamarante/cakesoap" : "~3.2"
to require
section in your application's composer.json
. Stable Release.
Usage
Include the CakeSoap library files:
use CakeSoap\Network\CakeSoap;
Sample Request
$soap = new CakeSoap([ 'wsdl' => 'http://mydomain.com/api?wsdl', 'userAgent' => 'MySoapClientAgent' ]); $response = $soap->sendRequest($action, [ 'SomeData' => [ 'SomeSubData' => 'item1', 'SomeMoreSubData' => 'item2' ] ]);