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(6mo ago)21618[6 issues](https://github.com/sturents/swagger-php-model-generator/issues)1MITPHPPHP &gt;=7.4

Since Jul 25Pushed 6mo 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 1mo 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

39

—

LowBetter than 85% of packages

Maintenance50

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community19

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

201d 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

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M385](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)

PHPackages © 2026

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