PHPackages                             mmskazak/laravel-soap - 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. [API Development](/categories/api)
4. /
5. mmskazak/laravel-soap

ActiveLibrary[API Development](/categories/api)

mmskazak/laravel-soap
=====================

A SoapClient wrapper integration for Laravel (PHP 8.0+ fork of artisaninweb/laravel-soap)

v1.0.1(2w ago)01↓100%MITPHPPHP ^8.0

Since May 24Pushed 2w agoCompare

[ Source](https://github.com/mmskazak/laravel-soap)[ Packagist](https://packagist.org/packages/mmskazak/laravel-soap)[ RSS](/packages/mmskazak-laravel-soap/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Laravel SoapClient Wrapper
==========================

[](#laravel-soapclient-wrapper)

A SoapClient wrapper integration for Laravel — actively maintained fork of [artisaninweb/laravel-soap](https://github.com/artisaninweb/laravel-soap).

> **Why this fork?** The original package has not been updated since 2021 and targets PHP 5.4+. This fork modernizes the codebase for PHP 8.0+, fixes several bugs, and keeps the same simple API.

Please report any bugs or features here:

What's changed
==============

[](#whats-changed)

- **PHP 8.0+** — dropped support for EOL PHP versions (5.x, 7.x)
- **PSR-4 autoloading** — migrated from deprecated PSR-0
- **Explicit dependency** on `illuminate/support` (^9.0|^10.0|^11.0)
- **Fixed** `classMap()` renamed to `classmap()` to match the documented API
- **Fixed** `getOptions()` was mutating internal state on every call — options no longer accumulate on repeated calls
- **Fixed** `client()` closure parameter is now required — previously marked optional but always caused a crash if omitted
- **Improved** `ServiceProvider` uses `singleton()` via the IoC container instead of manual instantiation
- **Cleaner types** — added `string`/`array`/`int` type hints throughout
- **Fixed** `Client::SoapCall()` deprecation on PHP 8.1+ — `array $options = null` changed to `?array $options = null`

Installation
============

[](#installation)

Laravel
-------

[](#laravel)

#### Installation (Laravel 9, 10, 11):

[](#installation-laravel-9-10-11)

Run `composer require mmskazak/laravel-soap`

Laravel 5.5+ supports package auto-discovery, so no manual registration is needed.

If you need to register manually, add the service provider in `config/app.php`:

```
Artisaninweb\SoapWrapper\ServiceProvider::class,
```

To use the facade, add this to the aliases in `config/app.php`:

```
'SoapWrapper' => Artisaninweb\SoapWrapper\Facade::class,
```

Lumen
-----

[](#lumen)

Open `bootstrap/app.php` and register the required service provider:

```
$app->register(Artisaninweb\SoapWrapper\ServiceProvider::class);
```

register class alias:

```
class_alias('Artisaninweb\SoapWrapper\Facade', 'SoapWrapper');
```

*Facades must be enabled.*

Usage
=====

[](#usage)

How to add a service to the wrapper and use it.

```
