Download the PHP package tuscanicz/soap without Composer

On this page you can find all versions of the php package tuscanicz/soap. 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 soap

BeSimpleSoap

Build SOAP and WSDL based web services. This fork is a refactored version that fixes a lot of errors and provides better API, robust, stable and modern codebase. See How to use that will help you to understand the magic.

Components

BeSimpleSoap consists of five components ...

BeSimpleSoapClient

Refactored BeSimpleSoapClient is a component that extends the native PHP SoapClient with further features like SwA and WS-Security.

BeSimpleSoapServer

Refactored BeSimpleSoapServer is a component that extends the native PHP SoapServer with further features like SwA and WS-Security.

BeSimpleSoapCommon

Refactored BeSimpleSoapCommon component contains functionality shared by both the server and client implementations.

BeSimpleSoapWsdl

Untouched! The component is not affected by refactoring so it should work properly. For further information see the original README.

BeSimpleSoapBundle

Unsupported! The BeSimpleSoapBundle is a Symfony2 bundle to build WSDL and SOAP based web services. For further information see the the original README. Will not work since the Symfony libraries were removed and usages of other components were not refactored. Feel free to fork this repository and fix it!

Installation

If you do not yet have composer, install it like this:

Create a composer.json file:

Now you are ready to install the library:

How to use

You can investigate the unit tests dir tests in order to get a clue. Forget about associative arrays, vague configurations, multiple extension and silent errors! This may look a bit more complex at the first sight, but it will guide you to configure and set up your client or server properly.

Example of soap client call

Something wrong?!

Turn on the tracking and catch SoapFaultWithTracingData exception to get some sweets :)

In this example, a MyRequest object has been used to describe request. Using a ClassMap, you help SoapClient to turn it into XML request.

Example of soap server handling

Starting a SOAP server is a bit more complex. I recommend you to inspect SoapServer unit tests for inspiration.

In this example, a DummyService service has been used to handle request. Using a service can help you create coherent SoapServer endpoints. Service can hold an endpoint URL, WSDL path and a class map as associative array. You can hold a class map as ClassMap object directly in the DummyService instead of array.

In the service you should describe SOAP methods from given WSDL. In the example, the dummyServiceMethod is called. The method will receive request object and return response object that are matched according to the class map.

See a simplified implementation of dummyServiceMethod to get a clue:

For further information and getting inspiration for your implementation, see the unit tests in tests dir.

Contribute

Build Status

Feel free to contribute! Please, run the tests via Phing php phing -f build.xml.

Warning: Unit tests may fail under Windows OS, tested under Linux, MacOS.


All versions of soap with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0|>=7.0
ext-soap Version *
ext-curl Version *
ass/xmlsecurity Version ~1.0
zendframework/zend-mime Version 2.1.*
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 tuscanicz/soap contains the following files

Loading the files please wait ....