PHPackages                             primitive/openapi-initializer - 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. primitive/openapi-initializer

ActiveLibrary[API Development](/categories/api)

primitive/openapi-initializer
=============================

A command for Laravel to quickly scaffold an OpenAPI Spec file

1.4.0(5y ago)807681MITPHPPHP &gt;=7.0

Since Nov 4Pushed 5y ago3 watchersCompare

[ Source](https://github.com/PrimitiveSocial/openapi-initializer)[ Packagist](https://packagist.org/packages/primitive/openapi-initializer)[ RSS](/packages/primitive-openapi-initializer/feed)WikiDiscussions main Synced 1mo ago

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

openapi-initializer
===================

[](#openapi-initializer)

[![logo](https://github.com/PrimitiveSocial/openapi-initializer/raw/main/oai.png)](https://github.com/PrimitiveSocial/openapi-initializer/blob/main/oai.png)

Straight forward Laravel command to scaffold an OpenAPI spec file

Scaffold an OpenAPI spec file in minutes.

OpenAPI
-------

[](#openapi)

**OpenAPI** Default Version: 3.1.0

Read more about the current OpenAPI Version [here](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md)

Requirements
------------

[](#requirements)

**Laravel** versions 6.x, 7.x, and 8.x.

**PHP** 7.0 or greater.

Install
-------

[](#install)

```
composer require primitive/openapi-initializer

```

### Usage

[](#usage)

To use the command, you need to run

```
php artisan openapi:create

```

From there, prompts will step through the process with you, asking questions to fill in various bits of information needed to make the OpenAPI specification conform to the specification standard.

If you do not run

```
php artisan vendor:publish --vendor=Primitive\OpenApiServiceProvider

```

prior to running the Artisan command, the command itself will run the `vendor:publish` command as well as caching the config so we can use it in the command. We tried to be thoughtful when writing this command because we want to create an enjoyable developer experience.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

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

Total

7

Last Release

1911d ago

Major Versions

v0.1.0 → v1.0.02020-11-05

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

1.2.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b1b25592327e749dae7ba51a6288ddf69fa6cca6f680b86cce1941bddcde92a?d=identicon)[matthewtrask](/maintainers/matthewtrask)

![](https://www.gravatar.com/avatar/9833fa1630bcd67c1340f785eafdea467a48b3c665bcc4e59b1253e0fa400762?d=identicon)[jerredhurst](/maintainers/jerredhurst)

---

Top Contributors

[![matthewtrask](https://avatars.githubusercontent.com/u/4731244?v=4)](https://github.com/matthewtrask "matthewtrask (32 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/primitive-openapi-initializer/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[currency-cloud/client

A PHP library which implements the complete functionality of v2 of the The Currency Cloud API.

17327.2k](/packages/currency-cloud-client)

PHPackages © 2026

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