mongosoft/yii2-soap-client
最新稳定版本:0.1.0
Composer 安装命令:
composer require mongosoft/yii2-soap-client
包简介
SOAP Client Extension for Yii 2
README 文档
README
Note, PHP SOAP extension is required.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist mongosoft/yii2-soap-client "*"
or add
"mongosoft/yii2-soap-client": "*"
to the require section of your composer.json file.
Usage
You need to setup soap client application component:
'components' => [ 'siteApi' => [ 'class' => 'mongosoft\soapclient\Client', 'url' => 'http://myservice.com/api/hello', 'options' => [ 'cache_wsdl' => WSDL_CACHE_NONE, ], ] ... ]
or define the client directly in the code:
$client = new \mongosoft\soapclient\Client([ 'url' => 'http://myservice.com/api/hello', ]);
Example of calling the SOAP function:
$client = Yii::$app->siteApi; echo $client->getHello('Alex');
统计信息
- 总下载量: 391.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 39
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-02-10