vaclavvanik/soap-wsdl-http
最新稳定版本:1.0.0
Composer 安装命令:
composer require vaclavvanik/soap-wsdl-http
包简介
An easy way to handle WSDL from URL
README 文档
README
This package provides an easy way to get WSDL from URL.
Install
You can install this package via composer.
composer require vaclavvanik/soap-wsdl-http
This package needs PSR-17 HTTP Factories and PSR-18 HTTP Client implementations. You can use e.g. Guzzle.
composer require vaclavvanik/soap-wsdl-http guzzlehttp/guzzle
Usage
HttpProvider
GET WSDL from given URL. Example with Guzzle:
<?php declare(strict_types=1); use GuzzleHttp; use VaclavVanik\Soap\Wsdl; $httpClient = new GuzzleHttp\Client(); $requestFactory = new GuzzleHttp\Psr7\HttpFactory(); $url = 'https://example.com/my.wsdl'; $wsdl = (new Wsdl\HttpClientProvider($httpClient, $requestFactory, $url))->provide();
Exceptions
provide methods throw:
- Exception\HttpConnection if http connection issue occurred.
- Exception\HttpResponse if unexpected response returned.
Run check - coding standards and php-unit
Install dependencies:
make install
Run check:
make check
Changelog
Please see CHANGELOG for more information what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 103
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-02