2017 © Pedro Peláez
 

symfony-bundle soap-bundle

Symfony wrapper for SoapClient

image

nfqde/soap-bundle

Symfony wrapper for SoapClient

  • Wednesday, January 3, 2018
  • by Ellis
  • Repository
  • 3 Watchers
  • 4 Stars
  • 5,682 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

SoapBundle Build Status

SoapBundle provides functionality for PHP SoapClient to be traceable by Symfony WebProfiler., (*1)

SoapBundle Promo, (*2)

Features

  • Requests are being logged in WebProfiler
  • Event is being dispatched after SoapRequest

Installation

  1. Add this bundle to your project as composer dependency, (*3)

    composer require nfqde/soap-bundle
    
  2. Add this bundle in application kernel, (*4)

    // app/AppKernel.php
    public function registerBundles()
    {
        // ...
        $bundles[] = new Nfq\Bundle\SoapBundle\NfqSoapBundle();
    
        return $bundles;
    }
    

Usage

Instead of creating SoapClient like new \SoapClient($wsdl, $optionalOptions) you SHOULD create it via $container->get('nfq_soap.factory')->create($wsdl, $optionalOptions) which returns an instance of SoapClient., (*5)

// Old way
$oldSoapClient = new \SoapClient($wsdl);

// New way
$client = $container->get('nfq_soap.factory')->create($wsdl);
# Old Way
services:
    old_soap_client:
        class: SoapClient
        arguments: ["%wsdl_url%"]

# New Way
services:
    new_soap_client:
        class: SoapClient
        factory: ["@nfq_soap.factory", create]
        arguments: ["%wsdl_url%"]

License

SoapBundle is licensed under the MIT License - see the LICENSE file for details, (*6)

The Versions

03/01 2018

dev-master

9999999-dev https://github.com/nfqde/soap-bundle

Symfony wrapper for SoapClient

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony soap

03/01 2018
10/06 2016

v0.0.1

0.0.1.0 https://github.com/nfqde/soap-bundle

Symfony wrapper for SoapClient

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony soap