Download the PHP package sourcetoad/soapy without Composer

On this page you can find all versions of the php package sourcetoad/soapy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package soapy

Soapy

SOAP is old, but still used. Soapy is modern, but feature limited to fit our use cases.
Heavily inspired by artisaninweb/laravel-soap.

Install

This package is currently supporting Laravel 11.x.

This package will use Laravel Auto Discovery to automatically register the Service Provider.

Documentation

Options

Example (Class maps)

Creating a client and making a request with class maps.

Presuming you had XML for the expected request like this.

You could produce a matching class to resemble that data.

You could then call a fictitious method name "fizz" on the SOAP Class like.

This shows the benefit of never messing with XML directly.

Likewise for the response. Imagine you got back this.

This can also be mapped with the following class.

So now you can do:

Example (No Class maps)

This example shows bare minimum WSDL location and no class maps.

Presuming you had XML for the expected request like this.

You could then call a fictitious method name "fizz" on the SOAP Class like.

This is more error prone due to human error with keys, but less work.

Example (Custom Client)

Sometimes you may have a SOAP Integration that just isn't fun. It may use something that our default SoapyClient cannot handle. This is okay, because patching a generic SOAP Client for all the strangeness that can happen is not feasible.

Start with a new class, that extends our SoapyBaseClient.

From that class. You can overload any of the functions it provides.

Then pass the class name (fully qualified) to the Curtain during generation.


All versions of soapy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2||^8.3||^8.4
ext-simplexml Version *
ext-soap Version *
illuminate/support Version ^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sourcetoad/soapy contains the following files

Loading the files please wait ....