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 today

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 21% 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

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

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[sylius/sylius

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

8.5k5.9M736](/packages/sylius-sylius)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[shopware/platform

The Shopware e-commerce core

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

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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