2017 © Pedro Peláez
 

library exfoliate

A lightweight PHP SOAP wrapper

image

jeremylivingston/exfoliate

A lightweight PHP SOAP wrapper

  • Tuesday, April 12, 2016
  • by jeremylivingston
  • Repository
  • 0 Watchers
  • 1 Stars
  • 5,346 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 9 % Grown

The README.md

Exfoliate

Build Status, (*1)

Exfoliate is a lightweight PHP wrapper for the core SoapClient class., (*2)

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

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., (*4)

Installation

The suggested installation method is via composer:, (*5)

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:, (*6)

<?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:, (*7)

<?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:, (*8)

<?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();

The Versions

12/04 2016

dev-master

9999999-dev http://www.github.com/jeremylivingston/exfoliate

A lightweight PHP SOAP wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

php soap

12/04 2016

v1.0.1

1.0.1.0 http://www.github.com/jeremylivingston/exfoliate

A lightweight PHP SOAP wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

php soap

31/08 2013

v1.0.0

1.0.0.0 http://www.github.com/jeremylivingston/exfoliate

A lightweight PHP SOAP wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

php soap