定制 nfqde/soap-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nfqde/soap-bundle

最新稳定版本:v0.0.2

Composer 安装命令:

composer require nfqde/soap-bundle

包简介

Symfony wrapper for SoapClient

README 文档

README

SoapBundle provides functionality for PHP SoapClient to be traceable by Symfony WebProfiler.

SoapBundle Promo

Features

  • Requests are being logged in WebProfiler
  • Event is being dispatched after SoapRequest

Installation

  1. Add this bundle to your project as composer dependency

    composer require nfqde/soap-bundle
  2. Add this bundle in application kernel

    // app/AppKernel.php
    public function registerBundles()
    {
        // ...
        $bundles[] = new Nfq\Bundle\SoapBundle\NfqSoapBundle();
    
        return $bundles;
    }

Usage

Instead of creating SoapClient like new \SoapClient($wsdl, $optionalOptions) you SHOULD create it via $container->get('nfq_soap.factory')->create($wsdl, $optionalOptions) which returns an instance of SoapClient.

// Old way
$oldSoapClient = new \SoapClient($wsdl);

// New way
$client = $container->get('nfq_soap.factory')->create($wsdl);
# Old Way
services:
    old_soap_client:
        class: SoapClient
        arguments: ["%wsdl_url%"]

# New Way
services:
    new_soap_client:
        class: SoapClient
        factory: ["@nfq_soap.factory", create]
        arguments: ["%wsdl_url%"]

License

SoapBundle is licensed under the MIT License - see the LICENSE file for details

统计信息

  • 总下载量: 24.3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固