Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Soap Bundle Laravel Package

barm/soap-bundle

View on GitHub
Deep Wiki
Context7

SoapBundle Build Status

SoapBundle provides functionality for PHP SoapClient to be traceable by Symfony WebProfiler. Compatible with Symfony 4+.

SoapBundle Promo

Features

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

Installation

  1. Add this bundle to your project as composer dependency

    composer require barm/soap-bundle
    
  2. Add this bundle in application kernel

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

Usage

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

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

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

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

License

SoapBundle is licensed under the MIT License - see the LICENSE file for details

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity