monomelodies/newsoap
最新稳定版本:0.1.0
Composer 安装命令:
composer require monomelodies/newsoap
包简介
PHP Soap client based on NuSoap
关键字:
README 文档
README
A modernised fork of nusoap.
Installation
Composer (recommended)
$ composer require monomelodies/newsoap
Manual
- Download or clone the repository;
- Add
/path/to/newsoap/srcas a PSR-4 path to your autoloader forNewsoap\\.
Why this library?
Modern PHP installations have a pretty awesome SoapClient native class, I'm
very well aware of that :) However, there are situations where using this is not
an option:
- For some reason, the SOAP extension is not installed;
- You're interfacing with a crappy SOAP server that doesn't adhere to specs.
Actually,
Newsoapwas specifically created to talk toLexisNexis, but I'm sure there are other implementations out there that will trip over PHP's (conforming) implementation.
Usage
Basically the same as nusoap, with currently two notable exceptions:
- The class name to use (duh). Use
new Newsoap\Client(...$optons). The parameters are still the same as fornewsoap_client(though I really want to change them, constructors with a gazillion arguments are bad practive). - On failure,
Newsoapdoesn't silently "log" errors but throws an exception of the typeNewsoap\ServiceExceptionorNewsoap\FaultException.
Todos
- Modernize more code
- Implement exception-based error handling throughout
- Cleanup the old debug methods
- Check
Serverimplementation (I was initially more concerned with the client, but it should work - but really maybe this lib shouldn't concern itself with that part anyway) - Add unit tests
统计信息
- 总下载量: 3.78k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-21