PHPackages                             sturents/swagger-php-model-generator - 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. sturents/swagger-php-model-generator

ActiveLibrary[API Development](/categories/api)

sturents/swagger-php-model-generator
====================================

0.3.0(8mo ago)21678[6 issues](https://github.com/sturents/swagger-php-model-generator/issues)1MITPHPPHP &gt;=7.4

Since Jul 25Pushed 8mo ago8 watchersCompare

[ Source](https://github.com/sturents/swagger-php-model-generator)[ Packagist](https://packagist.org/packages/sturents/swagger-php-model-generator)[ RSS](/packages/sturents-swagger-php-model-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (5)Versions (37)Used By (1)

Swagger PHP Model Generator
===========================

[](#swagger-php-model-generator)

Generates simple models with no dependencies from a Swagger/Open API 2.0 file

Install using composer

```
composer require sturents/swagger-php-model-generator
```

Run with:

```
$generator = new SwaggerGen\GenerateAll('MyNamespace', '/path/to/api.yaml', '/path/to/library/src/');
echo $generator->saved_models.' - '.$generator->saved_requests;
```

Or run simply from this repo using:

```
php example.php --yaml-path /path/to/api.yaml --model-dir /path/to/generate/models --namespace MyNamespace
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance40

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 89.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 ~78 days

Recently: every ~104 days

Total

35

Last Release

252d ago

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

0.2.0PHP &gt;=7.4 &lt;8.3

0.2.4PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e13cb42c1a004c15c986cc3ac59424757dd04b25ed4068146e41812f0410338?d=identicon)[m1ke](/maintainers/m1ke)

---

Top Contributors

[![M1ke](https://avatars.githubusercontent.com/u/1226123?v=4)](https://github.com/M1ke "M1ke (51 commits)")[![craig-mcmahon](https://avatars.githubusercontent.com/u/5879594?v=4)](https://github.com/craig-mcmahon "craig-mcmahon (4 commits)")[![simkesd](https://avatars.githubusercontent.com/u/1640627?v=4)](https://github.com/simkesd "simkesd (2 commits)")

### Embed Badge

![Health badge](/badges/sturents-swagger-php-model-generator/health.svg)

```
[![Health](https://phpackages.com/badges/sturents-swagger-php-model-generator/health.svg)](https://phpackages.com/packages/sturents-swagger-php-model-generator)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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