Download the PHP package alpari/soap-client without Composer

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

Soap client

Extended PHP soap client with additional features.

Features

  1. Timeout support for requests
  2. Asynchronous SOAP requests
  3. Custom HTTP-request headers
  4. Logging support with PSR-3-compatible logger
  5. Special test client for writing tests on your server

Prerequisites

The soap, dom, curl, libxml extensions must be pre-installed on the server in order to use this library.

Installing

The recommended way is using a composer

Usage

Simple SOAP request

Async SOAP requests

This feature execute multiple SOAP requests in parallel.

The responses variable will contain the result of all calls made inside async function in order they were called there. In example above the responses[0] is the return value of remote method methodA, response[1] is the return value of methodB. If there was an exception during some method call, the corresponding array item will contain an exception object of SoapFault class.

Requests with timeout

To set timeout for request use setTimeout value with a single parameter - time to wait request completion in milliseconds. If setTimeout method is not called explicitly, the value of php-ini setting default_socket_timeout will be used.

Passing custom HTTP headers

Logging requests

The SoapClient implements Psr\Log\LoggerAwareInterface.

SOAP client constructor options

This implementation of SOAP client supports additional array of options:

Testing own SOAP servers

To test your own SOAP server you need to install additional packages if you steel don't have them in a project:

If the project is based on Symfony framework, just use Alpari\Components\SoapClient\Test\TestSoapClient in the test-case

If the project is based on some other framework you will need an implementation of Symfony\Component\HttpKernel\HttpKernelInterface in your test which will redirect all calls to application's entry point and return symfony Response object:

Running the tests

Tests are written with phpunit. To run the tests use the following command:

License

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


All versions of soap-client with dependencies

PHP Build Version
Package Version
Requires php Version ~7.1
ext-curl Version *
ext-dom Version *
ext-libxml Version *
ext-soap Version *
psr/log Version ^1.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 alpari/soap-client contains the following files

Loading the files please wait ....