PHPackages                             webair-srl/phpwsdl2 - 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. webair-srl/phpwsdl2

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

webair-srl/phpwsdl2
===================

PhpWSDL2 - Modern PHP WSDL/SOAP WebService Library with Multiple Protocol Support

v1.0.4(1mo ago)169MITPHPPHP &gt;=8.2

Since Jul 31Pushed 1mo agoCompare

[ Source](https://github.com/Webair-SRL/phpwsdl2)[ Packagist](https://packagist.org/packages/webair-srl/phpwsdl2)[ Docs](https://github.com/Webair-SRL/phpwsdl2)[ RSS](/packages/webair-srl-phpwsdl2/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (10)Versions (6)Used By (0)

PhpWSDL2
========

[](#phpwsdl2)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/0be43eddd7df02c94a0fbc04aaa13d5250351c44ab63a3782498d66280b1767a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e322d626c75652e737667)](https://php.net/)

PhpWSDL2 is a modern PHP library for creating WSDL/SOAP web services with support for multiple protocols including SOAP, JSON, REST, XML-RPC, and HTTP. It provides automatic service description generation, client code generation, and comprehensive documentation features.

Features
--------

[](#features)

- 🚀 **Multiple Protocol Support**: SOAP, JSON, REST, XML-RPC, HTTP
- 📝 **Automatic Documentation**: HTML service descriptors and PDF generation
- 🔧 **Client Code Generation**: Generate clients for PHP, JavaScript, and more
- 🎯 **Modern PHP**: Built for PHP 8.2+ with strict typing
- 📦 **Framework Independent**: Works with any PHP application
- 🔍 **Reflection-Based**: Automatic service discovery using PHP reflection
- 🎨 **Professional Output**: Clean, well-formatted documentation and clients

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

[](#installation)

Install PhpWSDL2 via Composer:

```
composer require webair-srl/phpwsdl2
```

TCPDF 7 generates its font assets in the consuming project. Because Composer does not execute scripts declared by dependencies, add the following script to the root `composer.json` of the application that installs PhpWSDL2:

```
{
    "scripts": {
        "tcpdf-fonts": [
            "[ ! -d vendor/tecnickcom/tc-lib-pdf-font ] || [ -f vendor/tecnickcom/tc-lib-pdf-font/target/fonts/core/helvetica.json ] || make -C vendor/tecnickcom/tc-lib-pdf-font deps fonts"
        ],
        "post-install-cmd": ["@tcpdf-fonts"],
        "post-update-cmd": ["@tcpdf-fonts"]
    }
}
```

For an existing installation, initialize the fonts once with:

```
make -C vendor/tecnickcom/tc-lib-pdf-font deps fonts
```

Quick Start
-----------

[](#quick-start)

### 1. Create Your Service Class

[](#1-create-your-service-class)

```
