PHPackages                             vanengers/php-openapi-client-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. vanengers/php-openapi-client-generator

ActiveLibrary[API Development](/categories/api)

vanengers/php-openapi-client-generator
======================================

Generate a PHP client for an OPENAPI specification

v1.1.0(2y ago)020mitPHPPHP &gt;=7.4

Since Oct 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vanengers/php-openapi-client-generator)[ Packagist](https://packagist.org/packages/vanengers/php-openapi-client-generator)[ RSS](/packages/vanengers-php-openapi-client-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (22)Versions (9)Used By (0)

php-openapi-client-generator
============================

[](#php-openapi-client-generator)

Generate a PHP client for an OPENAPI specification

### Installation

[](#installation)

```
composer require --dev vanengers/php-openapi-client-generator

```

### Usage

[](#usage)

```
OPENAPI=http://127.0.0.1:8000/docs.json NAMESPACE=VendorName\\PackageName\\Generated OUTPUT_DIR=src/Generated ./bin/api-client-generator generate

```

##### Specify the openapi specifications JSON file

[](#specify-the-openapi-specifications-json-file)

```
OPENAPI=http://127.0.0.1:8000/docs.json

```

##### Specify the namespace for the generated classes

[](#specify-the-namespace-for-the-generated-classes)

```
NAMESPACE=VendorName\\PackageName\\Generated

```

##### Specify the output directory for the generated classes

[](#specify-the-output-directory-for-the-generated-classes)

```
OUTPUT_DIR=src/Generated

```

### Run the generator

[](#run-the-generator)

```
./bin/api-client-generator generate

```

### Example client is generated; SampleClient.php

[](#example-client-is-generated-sampleclientphp)

You will need to finish the implementation of the client yourself. This is for generation of the login methods, which may differ per API. And you will need to add the correct namespace to the generated classes. You can also add your own methods to save and retrieve a Saved Token.

```
public function login()
{ ... }

```

```
callable $saveToken = fn (string $token) => saveInterally($token);

```

### This would result in these generated classes

[](#this-would-result-in-these-generated-classes)

[![alt text](https://raw.githubusercontent.com/vanengers/php-openapi-client-generator/main/img/dirs.png)](https://raw.githubusercontent.com/vanengers/php-openapi-client-generator/main/img/dirs.png)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~26 days

Recently: every ~45 days

Total

8

Last Release

757d ago

Major Versions

v0.9.1 → v1.0.02023-10-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/90f2324639ed35bd07704cf01a6c124478ec162147a7e60d0ca61cfd8f463a0a?d=identicon)[georgevanengers](/maintainers/georgevanengers)

---

Top Contributors

[![vanengers](https://avatars.githubusercontent.com/u/39123706?v=4)](https://github.com/vanengers "vanengers (11 commits)")

### Embed Badge

![Health badge](/badges/vanengers-php-openapi-client-generator/health.svg)

```
[![Health](https://phpackages.com/badges/vanengers-php-openapi-client-generator/health.svg)](https://phpackages.com/packages/vanengers-php-openapi-client-generator)
```

###  Alternatives

[sylius/sylius

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

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

The Shopware e-commerce core

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

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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