PHPackages                             aaharu/curlsoapclient - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. aaharu/curlsoapclient

ActiveLibrary[HTTP &amp; Networking](/categories/http)

aaharu/curlsoapclient
=====================

A SoapClient wrapper that uses ext-curl.

2.0.0(7y ago)58.7k4MITPHPPHP &gt;=7.2

Since Sep 20Pushed 5y ago2 watchersCompare

[ Source](https://github.com/aaharu/curlsoapclient)[ Packagist](https://packagist.org/packages/aaharu/curlsoapclient)[ RSS](/packages/aaharu-curlsoapclient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

curlsoapclient
==============

[](#curlsoapclient)

[![Build Status](https://camo.githubusercontent.com/eeddae2406d58cfa104f1739dbf2822f03f68b71bb36b439bc5519fd27a86ea2/68747470733a2f2f7472617669732d63692e636f6d2f6161686172752f6375726c736f6170636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/aaharu/curlsoapclient)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9fa56eb39dda6c5932d477de772442914ecbe3e4c2815a51f0f3e62f5f823f51/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6161686172752f6375726c736f6170636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/aaharu/curlsoapclient/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/3aecfbe11e485e6afdd72555bb104bd1f01af58ca341820350a182389427ac25/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6161686172752f6375726c736f6170636c69656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/aaharu/curlsoapclient/?branch=master)[![FOSSA Status](https://camo.githubusercontent.com/76dd0e1db290fb44823dc83130417c54d853583fb4dbca1ae8dcc2ecc81e0eeb/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532466161686172752532466375726c736f6170636c69656e742e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Faaharu%2Fcurlsoapclient?ref=badge_shield)

A SoapClient wrapper that uses ext-curl.

Documentation
-------------

[](#documentation)

### Aaharu\\Soap\\CurlSoapClient::CurlSoapClient

[](#aaharusoapcurlsoapclientcurlsoapclient)

This class is extended [SoapClient](https://secure.php.net/manual/class.soapclient.php).

```
public CurlSoapClient::CurlSoapClient ( mixed $wsdl [, array $options ] )
```

#### supported options

[](#supported-options)

- soap\_version
    - either `SOAP_1_1` or `SOAP_1_2`. If omitted, `SOAP_1_1` is used.
- compression
- trace
- exceptions
- connection\_timeout
- user\_agent
- keep\_alive
    - `true` as a default
- login
- password
- proxy\_host
- proxy\_port
- proxy\_login
- proxy\_password
- authentication
- ssl\_method

#### additional options

[](#additional-options)

- redirect\_max
    - The maximum amount of HTTP redirections to follow. default is 5.
    - `5` as a default
- curl\_timeout
    - CURLOPT\_TIMEOUT
    - `30` as a default
- proxy\_type
    - http, socks4, socks5

#### unsupported options

[](#unsupported-options)

- stream\_context
    - not necessary with curl
- local\_cert
    - use `CurlSoapClient::___curlSetOpt` instead
- passphrase
    - use `CurlSoapClient::___curlSetOpt` instead

#### examples

[](#examples)

wsdl mode.

```
use Aaharu\Soap\CurlSoapClient;

try {
    $client = new CurlSoapClient('http://webservices.amazon.com/AWSECommerceService/2013-08-01/AWSECommerceService.wsdl', ['trace' => true]);
    $client->ItemLookup();
} catch (\SoapFault $fault) {
}

echo $client->__getLastRequestHeaders() . $client->__getLastRequest();
```

```
POST /onca/soap?Service=AWSECommerceService HTTP/1.1
Host: webservices.amazon.com
Accept: */*
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://soap.amazon.com/ItemLookup"
Content-Length: 259

```

non-wsdl mode.

```
use Aaharu\Soap\CurlSoapClient;

$client = new CurlSoapClient(null, [
    'location' => 'http://example.com/test/location',
    'uri' => 'http://example.com/test/uri',
    'redirect_max' => 1,
    'exceptions' => false,
]);
$client->doSomething();
```

Installation
------------

[](#installation)

```
composer require aaharu/curlsoapclient

## for old PHP
# composer require aaharu/curlsoapclient:1.2.0
```

Contributing
------------

[](#contributing)

With [composer](https://getcomposer.org) installed, run the following from the root of the repository:

```
composer install
```

### Running the tests

[](#running-the-tests)

```
## running built-in server before execute `composer test`
# php -ddisplay_errors=stderr -S localhost:8000 &
composer test
```

License
-------

[](#license)

Licensed under the MIT License.

[![FOSSA Status](https://camo.githubusercontent.com/8361e890eb2a4e29a42e917e1190951be2066d6caf527c9a60613c88cc4ca96f/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532466161686172752532466375726c736f6170636c69656e742e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2Faaharu%2Fcurlsoapclient?ref=badge_large)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~269 days

Recently: every ~283 days

Total

7

Last Release

2642d ago

Major Versions

0.0.0 → 1.0.02014-09-24

1.2.0 → 2.0.02019-02-22

PHP version history (2 changes)0.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/382278?v=4)[Haruaki OTAKE](/maintainers/aaharu)[@aaharu](https://github.com/aaharu)

---

Top Contributors

[![aaharu](https://avatars.githubusercontent.com/u/382278?v=4)](https://github.com/aaharu "aaharu (67 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![Zandy](https://avatars.githubusercontent.com/u/116413?v=4)](https://github.com/Zandy "Zandy (2 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

---

Tags

curlphpsoapsoap-clientwsdlclientcurlweb servicesoapsoap-client

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/aaharu-curlsoapclient/health.svg)

```
[![Health](https://phpackages.com/badges/aaharu-curlsoapclient/health.svg)](https://phpackages.com/packages/aaharu-curlsoapclient)
```

###  Alternatives

[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[zoonman/pixabay-php-api

PixabayClient is a PHP HTTP client library to access Pixabay's API

3354.7k](/packages/zoonman-pixabay-php-api)[jshensh/php-curl-class

PHP HTTP client, based on cURL

532.8k](/packages/jshensh-php-curl-class)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
