PHPackages                             wsdltophp/phpgenerator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wsdltophp/phpgenerator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wsdltophp/phpgenerator
======================

Generate php source file

4.1.4(1mo ago)61.9M—8.9%51MITPHPPHP &gt;=7.4CI passing

Since Jun 4Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/WsdlToPhp/PhpGenerator)[ Packagist](https://packagist.org/packages/wsdltophp/phpgenerator)[ Docs](https://github.com/WsdlToPhp/PhpGenerator)[ RSS](/packages/wsdltophp-phpgenerator/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (37)Used By (1)

PhpGenerator, a Real PHP source code generator
==============================================

[](#phpgenerator-a-real-php-source-code-generator)

> PhpGenerator helps to generate PHP source code

[![License](https://camo.githubusercontent.com/71948a0aa946389b704902a1fffa231fdec6376add3a8eaaa7042dc93cfbb926/68747470733a2f2f706f7365722e707567782e6f72672f7773646c746f7068702f70687067656e657261746f722f6c6963656e7365)](https://packagist.org/packages/wsdltophp/phpgenerator)[![Latest Stable Version](https://camo.githubusercontent.com/1b78b43f02e03909958dfb320fc97ee49c56d4ddaa5b9005d4a776851e3c34a5/68747470733a2f2f706f7365722e707567782e6f72672f7773646c746f7068702f70687067656e657261746f722f76657273696f6e2e706e67)](https://packagist.org/packages/wsdltophp/phpgenerator)[![TeamCity build status](https://camo.githubusercontent.com/c66b1e01f7db6a3664c9abdb3932f535b15155625a270447b2e46fda928260a0/68747470733a2f2f7465616d636974792e6d696b61656c2d64656c736f6c2e66722f6170702f726573742f6275696c64732f6275696c64547970653a69643a50687047656e657261746f725f4275696c642f73746174757349636f6e2e737667)](https://github.com/WsdlToPhp/PhpGenerator)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4f57181ba08ed783d632c28477bad1268f19ac7e9bdf3d8a3035e803fbab0e2f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5773646c546f5068702f50687047656e657261746f722f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/WsdlToPhp/PhpGenerator/)[![Code Coverage](https://camo.githubusercontent.com/8024a946ed97862adaf3620b3e89f1ddf2676412618514fe8381c5131154f155/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5773646c546f5068702f50687047656e657261746f722f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/WsdlToPhp/PhpGenerator/)[![Total Downloads](https://camo.githubusercontent.com/868078cdd2f4004e28a062fbadf37cc021435e551fe441a16b12ca3a13d91fee/68747470733a2f2f706f7365722e707567782e6f72672f7773646c746f7068702f70687067656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/wsdltophp/phpgenerator)[![StyleCI](https://camo.githubusercontent.com/c51ec491c12331d17e4395b3825c41ebb8375cc5679c27b4908da32ecc6a35a2/68747470733a2f2f7374796c6563692e696f2f7265706f732f33363833323337352f736869656c64)](https://styleci.io/repos/36832375)[![SymfonyInsight](https://camo.githubusercontent.com/926c5ec45ed848f1de59093e77970be28ef2a41132b2d29f2672bc93ec9c84ed/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f61333834343831632d303162612d346332302d613863362d6134643835326565373938352f6d696e692e737667)](https://insight.symfony.com/projects/a384481c-01ba-4c20-a8c6-a4d852ee7985)

Even if this project is yet another PHP source code generator, its main goal is to provide a consistent PHP source code generator for the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) project. Nevertheless, it also aims to be used for any PHP source code generation process as it generates standard PHP code.

Rest assured that it is not tweaked for the purpose of the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) project.

Main features
-------------

[](#main-features)

This project contains two main features:

- [Element](src/Element/README.md): generate basic elements
- [Component](src/Component/README.md): generate structured complex elements

Testing using [Docker](https://www.docker.com/)
-----------------------------------------------

[](#testing-using-docker)

Thanks to the [Docker image](https://hub.docker.com/r/splitbrain/phpfarm) of [phpfarm](https://github.com/fpoirotte/phpfarm), tests can be run locally under *any* PHP version using the cli:

- php-7.4

First of all, you need to create your container which you can do using [docker-compose](https://docs.docker.com/compose/) by running the below command line from the root directory of the project:

```
$ make up
```

You then have a container named `php_generator` in which you can run `composer` commands and `php cli` commands such as:

```
# install deps in container (using update ensure it does use the composer.lock file if there is any)
$ make update
# run tests in container
$ make phpunit
```

FAQ
---

[](#faq)

If you have a question, feel free to [create an issue](https://github.com/WsdlToPhp/PhpGenerator/issues/new).

License
-------

[](#license)

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

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity47

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 99.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 ~123 days

Recently: every ~467 days

Total

33

Last Release

58d ago

Major Versions

0.0.16 → 1.0.0rc012015-08-13

1.2.1 → 2.0.02018-12-30

2.0.0 → 3.0.02021-01-26

3.0.2 → 4.0.02021-02-04

PHP version history (3 changes)0.0.1PHP &gt;=5.3.3

2.0.0PHP &gt;=7.1

3.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/f121510bbeb52d39582fbd1a2f31bc9fc4139f8ed4e89ef9c1406868c378669d?d=identicon)[wsdltophp](/maintainers/wsdltophp)

---

Top Contributors

[![mikaelcom](https://avatars.githubusercontent.com/u/584391?v=4)](https://github.com/mikaelcom "mikaelcom (329 commits)")[![aldenw](https://avatars.githubusercontent.com/u/4245644?v=4)](https://github.com/aldenw "aldenw (1 commits)")[![Gemorroj](https://avatars.githubusercontent.com/u/885731?v=4)](https://github.com/Gemorroj "Gemorroj (1 commits)")[![survik1](https://avatars.githubusercontent.com/u/4347839?v=4)](https://github.com/survik1 "survik1 (1 commits)")

---

Tags

generatorphp-libraryphp-sourcephpgenerator

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[genericmilk/docudoodle

Generate documentation for your Laravel application using OpenAI

15120.5k](/packages/genericmilk-docudoodle)[tomloprod/radiance

A deterministic mesh gradient avatar generator for PHP.

1393.7k](/packages/tomloprod-radiance)[tomatophp/filament-helpers

Helper Class Generator to manage your forms and table inside your filament app

127.9k](/packages/tomatophp-filament-helpers)

PHPackages © 2026

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