PHPackages                             php2wsdl/php2wsdl - 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. php2wsdl/php2wsdl

ActiveLibrary[API Development](/categories/api)

php2wsdl/php2wsdl
=================

Create WSDL files form PHP classes.

0.7.1(2w ago)51520.2k↓36.4%25[5 issues](https://github.com/dragosprotung/php2wsdl/issues)3MITPHPPHP &gt;=7.2CI passing

Since Mar 31Pushed 2w ago7 watchersCompare

[ Source](https://github.com/dragosprotung/php2wsdl)[ Packagist](https://packagist.org/packages/php2wsdl/php2wsdl)[ Docs](http://github.com/dragosprotung/php2wsdl)[ RSS](/packages/php2wsdl-php2wsdl/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (5)Versions (12)Used By (3)

PHP2WSDL
========

[](#php2wsdl)

[![Latest Version](https://camo.githubusercontent.com/b5e10c5cf3c00ff40e0cc91faf6a1a8732b0700caa15a0fce08fb72ed3aa41d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f647261676f7370726f74756e672f706870327773646c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/dragosprotung/php2wsdl/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://github.com/dragosprotung/php2wsdl/actions/workflows/build.yml/badge.svg)](https://github.com/dragosprotung/php2wsdl/actions/workflows/build.yml)[![Coverage Status](https://camo.githubusercontent.com/7d142fb466bb11c06568283573125390471ac65ce9aef944beb349e7adc039ea/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f647261676f7370726f74756e672f706870327773646c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/dragosprotung/php2wsdl/code-structure)[![Quality Score](https://camo.githubusercontent.com/021249f9f94b5f98c7763b658953ae3808e7fe3a5287a474e934dd1a7571a921/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f647261676f7370726f74756e672f706870327773646c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/dragosprotung/php2wsdl)[![Total Downloads](https://camo.githubusercontent.com/a9bcb125e10cfeb07a709525e26833ef40b5657d799e20784da12cb3346e09e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706870327773646c2f706870327773646c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/php2wsdl/php2wsdl)

Create WSDL files from PHP classes.

Install
-------

[](#install)

Via Composer

```
$ composer require php2wsdl/php2wsdl
```

Usage
-----

[](#usage)

```
$class = "Vendor\\MyClass";
$serviceURI = "https://www.myservice.com/soap";
$wsdlGenerator = new PHP2WSDL\PHPClass2WSDL($class, $serviceURI);
// Generate the WSDL from the class adding only the public methods that have @soap annotation.
$wsdlGenerator->generateWSDL(true);
// Dump as string
$wsdlXML = $wsdlGenerator->dump();
// Or save as file
$wsdlXML = $wsdlGenerator->save('foo/example.wsdl');
```

Testing
-------

[](#testing)

```
$ vendor/bin/simple-phpunit
```

Security
--------

[](#security)

If you discover any security related issues, please email instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance94

Actively maintained with recent releases

Popularity50

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.5% 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 ~495 days

Recently: every ~959 days

Total

10

Last Release

19d ago

PHP version history (3 changes)0.2PHP &gt;=5.4

0.6.1PHP &gt;=5.6

0.7.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2efa0f2a6aebe5a597df91530caa70a4dd998a624c21b6e8cc318fb929e6ab6d?d=identicon)[dragosprotung](/maintainers/dragosprotung)

---

Top Contributors

[![dragosprotung](https://avatars.githubusercontent.com/u/1081073?v=4)](https://github.com/dragosprotung "dragosprotung (31 commits)")[![pbeernink](https://avatars.githubusercontent.com/u/465760?v=4)](https://github.com/pbeernink "pbeernink (3 commits)")[![matias-yii](https://avatars.githubusercontent.com/u/4443092?v=4)](https://github.com/matias-yii "matias-yii (2 commits)")[![christingruber](https://avatars.githubusercontent.com/u/1124818?v=4)](https://github.com/christingruber "christingruber (2 commits)")[![jsoumelidis](https://avatars.githubusercontent.com/u/10474000?v=4)](https://github.com/jsoumelidis "jsoumelidis (1 commits)")[![gunmetalbackupgooglecode](https://avatars.githubusercontent.com/u/11455411?v=4)](https://github.com/gunmetalbackupgooglecode "gunmetalbackupgooglecode (1 commits)")[![maxxer](https://avatars.githubusercontent.com/u/240201?v=4)](https://github.com/maxxer "maxxer (1 commits)")[![misch717](https://avatars.githubusercontent.com/u/56400338?v=4)](https://github.com/misch717 "misch717 (1 commits)")[![nathan242](https://avatars.githubusercontent.com/u/30781730?v=4)](https://github.com/nathan242 "nathan242 (1 commits)")[![javierabion](https://avatars.githubusercontent.com/u/9607218?v=4)](https://github.com/javierabion "javierabion (1 commits)")

---

Tags

wsdlweb serviceswsdl generator

### Embed Badge

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

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

###  Alternatives

[phpforce/soap-client

A PHP client for the Salesforce SOAP API

831.9M1](/packages/phpforce-soap-client)[thephalcons/amazon-webservices-bundle

A Symfony2 Bundle for interfacing with Amazon Web Services (AWS)

110225.9k](/packages/thephalcons-amazon-webservices-bundle)[piotrooo/wsdl-creator

PHP WSDL creator using PHPdoc (annotations, reflections).

86163.0k2](/packages/piotrooo-wsdl-creator)[camcima/camcima-soap-client

Wrapper around PHP SoapClient class

2772.6k2](/packages/camcima-camcima-soap-client)[conquer/services

Yii2 soap wsdl web services

1734.3k](/packages/conquer-services)[skautis/skautis

Library for API calls to SkautIS

1433.6k4](/packages/skautis-skautis)

PHPackages © 2026

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