PHPackages                             quattror/swagger - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. quattror/swagger

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

quattror/swagger
================

A swagger helper

1.1.6(1y ago)0802MITPHPPHP &gt;=7.1.3

Since May 15Pushed 1y agoCompare

[ Source](https://github.com/quattror/swagger)[ Packagist](https://packagist.org/packages/quattror/swagger)[ RSS](/packages/quattror-swagger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (11)Used By (0)

quattror/swagger
----------------

[](#quattrorswagger)

Yet another tool for documenting laravel-based APIs with OpenApi/Swagger. This package is highly inspired by great [DarkaOnLine/L5-Swagger](https://github.com/DarkaOnLine/L5-Swagger) and also wraps [zircote/swagger-php](https://github.com/zircote/swagger-php) and [swagger-api/swagger-ui](https://github.com/swagger-api/swagger-ui), but since we had some particular requirements plus some issues when serving the static assets for swagger-ui, we decided do take a different approach. This package only supports OpenAPI annotations, Swagger 3.0, Laravel &gt;=5.6.

To install this package in your laravel app, just use composer:

```
$ composer require quattror/swagger
```

After the package is loaded, it will provide you with 3 console commands: init, generate-docs and copy-assets

***Init***: this command will setup the settings file (config/swagger.php) and create a folder for swagger-related files inside your app/Http. You should run this command only once per install.

```
$ php artisan swagger:init
```

***Copy-Assets***: this command with copy the swagger-ui related files to the public folder. You should run this command only once per install.

```
$ php artisan swagger:copy-assets
```

***Generate-Docs***: this command will scan your php files and generate the json specification file to be used by the swagger ui. The json file will be located inside the public folder. You should run this command every time you want to update the json file, for instance after annotating a controller.

```
$ php artisan swagger:generate-docs
```

### Quick setup

[](#quick-setup)

1. Go to an existing laravel app or create one
2. Install the quattror/swagger package
3. Run the init command
4. Run the copy-assets command
5. Run the generate-docs command
6. Serve the app and browse the route /docs

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.1% 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 ~195 days

Recently: every ~283 days

Total

9

Last Release

629d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef2a6daad6e8e33862cf1f14f9160f91470eb1d436ab242c5f35bf44e8c741bb?d=identicon)[quattror](/maintainers/quattror)

---

Top Contributors

[![ntgnn](https://avatars.githubusercontent.com/u/4570594?v=4)](https://github.com/ntgnn "ntgnn (23 commits)")[![EduardoBinoti](https://avatars.githubusercontent.com/u/15164313?v=4)](https://github.com/EduardoBinoti "EduardoBinoti (2 commits)")[![ccastro-quattror](https://avatars.githubusercontent.com/u/74911710?v=4)](https://github.com/ccastro-quattror "ccastro-quattror (1 commits)")[![maraujo-quattror](https://avatars.githubusercontent.com/u/73889939?v=4)](https://github.com/maraujo-quattror "maraujo-quattror (1 commits)")[![quattror](https://avatars.githubusercontent.com/u/50870743?v=4)](https://github.com/quattror "quattror (1 commits)")

### Embed Badge

![Health badge](/badges/quattror-swagger/health.svg)

```
[![Health](https://phpackages.com/badges/quattror-swagger/health.svg)](https://phpackages.com/packages/quattror-swagger)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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