PHPackages                             djairhogeuens/openapi-php - 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. djairhogeuens/openapi-php

ActiveLibrary[API Development](/categories/api)

djairhogeuens/openapi-php
=========================

PHP implementation of the OpenAPI Specification using PHP attributes

1.0.0-beta4(4y ago)1351[1 issues](https://github.com/djairhogeuens/openapi-php/issues)Apache-2.0PHPPHP &gt;=8.1

Since Oct 12Pushed 4y ago2 watchersCompare

[ Source](https://github.com/djairhogeuens/openapi-php)[ Packagist](https://packagist.org/packages/djairhogeuens/openapi-php)[ Docs](https://github.com/djairhogeuens/openapi-php)[ RSS](/packages/djairhogeuens-openapi-php/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

OpenAPI for PHP
===============

[](#openapi-for-php)

[![GitHub Workflow Status](https://camo.githubusercontent.com/bceadb35b334d5626d248a04a787749063a4fead8c45fc107c522b781ebfd944/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f646a616972686f676575656e732f6f70656e6170692d7068702f4349)](https://camo.githubusercontent.com/bceadb35b334d5626d248a04a787749063a4fead8c45fc107c522b781ebfd944/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f646a616972686f676575656e732f6f70656e6170692d7068702f4349) [![Packagist PHP Version Support](https://camo.githubusercontent.com/a23bc572defa4ef37961f09ae891089ed0702d82f9f575dba826f256755081d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646a616972686f676575656e732f6f70656e6170692d706870)](https://camo.githubusercontent.com/a23bc572defa4ef37961f09ae891089ed0702d82f9f575dba826f256755081d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646a616972686f676575656e732f6f70656e6170692d706870) [![GitHub](https://camo.githubusercontent.com/df394badadab5026f680aabc97456f6220497d4259e07fa9404c3cef73555b07/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646a616972686f676575656e732f6f70656e6170692d706870)](https://camo.githubusercontent.com/df394badadab5026f680aabc97456f6220497d4259e07fa9404c3cef73555b07/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646a616972686f676575656e732f6f70656e6170692d706870)

Description
-----------

[](#description)

This is an implementation of the OpenAPI specification using PHP attributes.

Currently, this implementation is compatible with OpenAPI 3.0.2 and requires PHP &gt;= 8.1.

Usage
-----

[](#usage)

Install the library using Composer: `composer require djairhogeuens/openapi-php`.

Find the full specification on the [wiki of this repository](https://github.com/djairhogeuens/openapi-php/wiki/Open-API-Specification-Attributes) including references to the [PHP docs](https://djairhogeuens.github.io/openapi-php).

See the `example` folder for an example on how to use the attributes in your project.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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 ~13 days

Recently: every ~19 days

Total

7

Last Release

1599d ago

PHP version history (2 changes)1.0.0-alphaPHP &gt;=8.0

1.0.0-beta2PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0980ebf69abd3d01c033975932fa90c3da08ad8e7437e66a61bcd8b5b1b6604b?d=identicon)[djairhogeuens](/maintainers/djairhogeuens)

---

Top Contributors

[![djairhogeuens](https://avatars.githubusercontent.com/u/22609352?v=4)](https://github.com/djairhogeuens "djairhogeuens (27 commits)")

###  Code Quality

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/djairhogeuens-openapi-php/health.svg)

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

###  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)
