2017 © Pedro Peláez
 

library soap-client

A PHP client for the Vnpay SOAP API

image

vnpay/soap-client

A PHP client for the Vnpay SOAP API

  • Monday, June 20, 2016
  • by hoangthienan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,021 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 28 % Grown

The README.md

PHP SOAP CLIENT

A PHP client for the VnPay SOAP API

Introduction

Features

This library's features include the following., (*1)

  • Added an EventDispatcher to your Soap client. It will trigger events at all important phases of the SOAP call
  • Easily extensible through events: add custom logging, caching, error handling etc
  • Completely tested

Installation

This library is available on Packagist. The recommended way to install this library is through Composer:, (*2)

$ php composer.phar require vnpay/soap-client dev-master

Usage

The client

First construct a client using the builder:, (*3)

$builder = new \Vnpay\SoapClient\ClientBuilder(
  '/path/to/your/vnpay/wsdl/sandbox.enterprise.wsdl.xml'
);

$client = $builder->build();

Logging

To enable logging for the client, call withLog() on the builder. For instance when using Monolog:, (*4)

$log = new \Monolog\Logger('vnpay');  
$log->pushHandler(new \Monolog\Handler\StreamHandler('/path/to/your.log'));

$builder = new \Vnpay\SoapClient\ClientBuilder(
  '/path/to/your/vnpay/wsdl/sandbox.enterprise.wsdl.xml'
);
$client = $builder->withLog($log)
  ->build();

All requests to the VnPay API, as well as the responses and any errors that it returns, will now be logged., (*5)

Completely tested

The Versions

20/06 2016

dev-master

9999999-dev

A PHP client for the Vnpay SOAP API

  Sources   Download

MIT

The Requires

 

soap web services vnpay

25/12 2015

v1.0.0

1.0.0.0

A PHP client for the Vnpay SOAP API

  Sources   Download

MIT

The Requires

 

soap web services vnpay