承接 edmondscommerce/ntlm-soap-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

edmondscommerce/ntlm-soap-client

最新稳定版本:v2.1.0

Composer 安装命令:

composer require edmondscommerce/ntlm-soap-client

包简介

A simple SOAP client that supports NTLM authentication for WSDL to PHP

README 文档

README

This is a very simple SOAP client that supports NTLM authentication for use with WSDL To PHP

It has two classes, the Client that allows the username and password to be set, and tells CURL to use NTLM, and the Base which extends the Abstract client from WsdlToPhp and sets the options.

Usage

When generating the client you need to use the setSoapClientClass option and pass in the Base class. A simplified example is shown below

<?php

declare(strict_types=1);

use EdmondsCommerce\NtlmSoapClient\NTLMSoapBase;
use WsdlToPhp\PackageGenerator\ConfigurationReader\GeneratorOptions;
use WsdlToPhp\PackageGenerator\Generator\Generator;

$options = GeneratorOptions::instance();
$options
    ->setSoapClientClass(NTLMSoapBase::class)
    /* Other options as required */
    ;
// Generator instantiation
$generator = new Generator($options);
// Package generation
$generator->generatePackage();

When using the generated classes, pass in the WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN and WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD options with the username and password.

Inspiration

The code for the Client came from the following ticket in the main project. I've just wrapped it in a library as I needed to use it in several different projects

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固