PHPackages                             vortechron/laravel-data-openapi-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. vortechron/laravel-data-openapi-generator

ActiveLibrary

vortechron/laravel-data-openapi-generator
=========================================

Generate OpenAPI specification from Laravel routes and Laravel Data objects.

02PHP

Since May 27Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

OpenAPI Generator using Laravel Data
====================================

[](#openapi-generator-using-laravel-data)

Generate OpenAPI specification from Laravel routes and Laravel Data objects

Install
=======

[](#install)

Add composer repository
-----------------------

[](#add-composer-repository)

In `composer.json` add this repository:

```
    "repositories": [
        {
            "type": "github",
            "url": "https://github.com/vortechron/laravel-data-openapi-generator"
        }
    ],
```

Install
-------

[](#install-1)

`composer require xolvio/laravel-data-openapi-generator`

Optional
========

[](#optional)

Version
-------

[](#version)

Add a `app.version` config in `app.php` to set the version in the openapi specification:

```
    'version' => env('APP_VERSION', '1.0.0'),
```

Vite PWA config
---------------

[](#vite-pwa-config)

If using `vite-plugin-pwa`, make sure to exclude '/api/' routes from the serviceworker using this config:

```
VitePWA({
	workbox: {
		navigateFallbackDenylist: [new RegExp("/api/.+")],
	},
});
```

Vue page
--------

[](#vue-page)

```

{
	"meta": {
		"public": true
	}
}

const url = `${import.meta.env.VITE_APP_URL}/api/openapi`;

```

Usage
=====

[](#usage)

Config
------

[](#config)

`php artisan vendor:publish --tag=openapi-generator-config`

Generate
--------

[](#generate)

`php artisan openapi:generate`

View
----

[](#view)

Swagger available at `APP_URL/api/openapi`

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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/f67c8081fd634e87bab7418d27abecbbad252aa55c080f4472b40c0a69c3a922?d=identicon)[vortechron](/maintainers/vortechron)

---

Top Contributors

[![iamrgroot](https://avatars.githubusercontent.com/u/8398505?v=4)](https://github.com/iamrgroot "iamrgroot (5 commits)")[![vortechron](https://avatars.githubusercontent.com/u/22893960?v=4)](https://github.com/vortechron "vortechron (1 commits)")

### Embed Badge

![Health badge](/badges/vortechron-laravel-data-openapi-generator/health.svg)

```
[![Health](https://phpackages.com/badges/vortechron-laravel-data-openapi-generator/health.svg)](https://phpackages.com/packages/vortechron-laravel-data-openapi-generator)
```

PHPackages © 2026

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