mongosoft/yii2-soap-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

Latest Stable Version Total Downloads

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

GitHub 信息

  • Stars: 37
  • Watchers: 4
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-02-10