PHPackages                             photocreate/api-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. photocreate/api-client-generator

ActiveLibrary[API Development](/categories/api)

photocreate/api-client-generator
================================

This is a toolset to generate API client from Swagger specification.

261PHP

Since Apr 27Pushed 2y ago32 watchersCompare

[ Source](https://github.com/Photocreate/api-client-generator)[ Packagist](https://packagist.org/packages/photocreate/api-client-generator)[ RSS](/packages/photocreate-api-client-generator/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

api-client-generator
====================

[](#api-client-generator)

[![CircleCI](https://camo.githubusercontent.com/3d7b668908c5298120e31208fa686e20ae9c396be137c7609f53665f913d9ef7/68747470733a2f2f636972636c6563692e636f6d2f67682f50686f746f6372656174652f6170692d636c69656e742d67656e657261746f722e7376673f7374796c653d737667)](https://circleci.com/gh/Photocreate/api-client-generator)[![Coverage Status](https://camo.githubusercontent.com/3dfc39c62ab696748f89b7d545a4011745540d1732fc5c8337233f7ae3a620b9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f50686f746f6372656174652f6170692d636c69656e742d67656e657261746f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Photocreate/api-client-generator?branch=master)

What is api-client-generator?
-----------------------------

[](#what-is-api-client-generator)

This is a toolset to generate API client from Swagger specification.

Support languages
-----------------

[](#support-languages)

Supported languages are as below.

- PHP

Run example
-----------

[](#run-example)

### Clone project

[](#clone-project)

```
$ git clone git@github.com:Photocreate/api-client-generator.git
$ cd api-client-generator
```

### Run docker

[](#run-docker)

```
$ cd example/petstore
$ docker-compose up -d
```

### Access Swagger-UI

[](#access-swagger-ui)

See

### Generate API client

[](#generate-api-client)

```
$ cd /path/to/project
$ bin/api-client-generator api:client:generate \
> --spec http://localhost:8002/v2/swagger.json \
> --output example/petstore/Petstore.php \
> --class Petstore --namespace "Example\Petstore"
```

### Run test.

[](#run-test)

```
$ cd /path/to/project
$ vendor/bin/phpunit -c . example/petstore/PetstoreTest.php
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8aba7d93a780666c169f405a4d4ca7134be832c6afd79ab8287fcfd25f69ab43?d=identicon)[photocreate](/maintainers/photocreate)

---

Top Contributors

[![imunew](https://avatars.githubusercontent.com/u/3860526?v=4)](https://github.com/imunew "imunew (7 commits)")[![ntakaaki](https://avatars.githubusercontent.com/u/1164805?v=4)](https://github.com/ntakaaki "ntakaaki (1 commits)")

---

Tags

swagger

### Embed Badge

![Health badge](/badges/photocreate-api-client-generator/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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