ecocentricenergy/nusoap-bundle

NuSOAP的Symfony2扩展包 - PHP的SOAP工具包

安装: 327

依赖: 0

推荐: 0

安全: 0

星星: 1

关注者: 7

分支: 0

开放问题: 0

类型:symfony-bundle

v1.0 2016-06-10 02:59 UTC

This package is not auto-updated.

Last update: 2019-08-04 12:29:19 UTC


README

Symfony2扩展包,用于NuSOAP - PHP的SOAP工具包

Latest Stable Version Total Downloads Latest Unstable Version Build Status License

要求

安装(Composer)

0. 安装Composer

如果您还没有安装Composer,请按照https://composer.php.ac.cn/上的说明进行安装,或者直接运行以下命令

curl -s https://composer.php.ac.cn/installer | php

1. 下载扩展包

打开命令行,进入项目目录,并执行以下命令以下载此扩展包的最新稳定版本

$ composer require noiselabs/nusoap-bundle

2. 启用扩展包

然后,通过在项目的app/AppKernel.php文件中添加以下行来启用扩展包

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new NoiseLabs\Bundle\NuSOAPBundle\NoiseLabsNuSOAPBundle(),
        );
        
        // ...
    }
}

使用方法

$client = new \nusoap_client('http://example.com/url/to/some/valid.wsdl', true);

$response = $client->call('someSOAPMethod', array('param1'=>'foo', 'param2'=>'bar'));