定制 jeremylivingston/exfoliate 二次开发

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

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

jeremylivingston/exfoliate

最新稳定版本:v1.0.1

Composer 安装命令:

composer require jeremylivingston/exfoliate

包简介

A lightweight PHP SOAP wrapper

关键字:

README 文档

README

Build Status

Exfoliate is a lightweight PHP wrapper for the core SoapClient class.

This library exists to make interactions with SOAP-based web services less painful. Exfoliate wraps SOAP exceptions in logical event-based exception classes.

The Exfoliate SoapClient is capable being constructed without initializing a connection to the web service. This capability can improve performance and also improve the handling of connection exceptions.

Installation

The suggested installation method is via composer:

php composer.phar require jeremylivingston/exfoliate:dev-master

After installing the Exfoliate library, simply create a new instance of the client and call any web service methods you desire:

<?php use Exfoliate\SoapClient; $client = new SoapClient('my-service-url', array('trace' => true)); $response = $client->call('GetUser', array('user_id' => 1234));

Use the Exfoliate\SoapClient::setHeaders() method to set any SOAP headers when the client is initialized:

<?php use Exfoliate\SoapClient; $client = new SoapClient('my-service-url', array('trace' => true)); $client->setHeaders( new \SoapHeader('my-namespace', 'Auth', array('User' => 'me', 'Password' => 'pw')) ); $response = $client->call('GetUser', array('user_id' => 1234));

You can retrieve the most recent request and response content via the Exfoliate\SoapClient::getLastRequest() and Exfoliate\SoapClient::getLastResponse() methods, respectively:

<?php use Exfoliate\SoapClient; $client = new SoapClient('my-service-url', array('trace' => true)); $response = $client->call('GetUser', array('user_id' => 1234)); $lastRequest = $client->getLastRequest(); $lastResponse = $client->getLastResponse();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固