PHPackages                             hovsepyan/lara-autoswag - 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. hovsepyan/lara-autoswag

ActiveLibrary[API Development](/categories/api)

hovsepyan/lara-autoswag
=======================

Auto generates the swagger documentation for a laravel project

2132PHP

Since Feb 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/khovsepyan/laraswag)[ Packagist](https://packagist.org/packages/hovsepyan/lara-autoswag)[ RSS](/packages/hovsepyan-lara-autoswag/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

ArtisanAutoSwag
===============

[](#artisanautoswag)

This package scans your laravel project's routes and auto generates a Swagger 3.0 documentation for you. If you inject Form Request classes in your controller's actions as request validation, it will also generate the parameters for each request that has them. It will take into account wether the request is a GET/HEAD/DELETE or a POST/PUT/PATCH request and make its best guess as to the type of parameter object it should generate. It will also generate the path parameters if you route contains them.

Installation
------------

[](#installation)

Before use this package please install  swagger for laravel :)

The package can easily be installed by running `composer require hovsepyan/lara-autoswag` in your project's root folder.

If you are running a version of Laravel &lt; 5.5 also make sure you add `Hovsepyan\LaravelSwagger\SwaggerServiceProvider::class` to the `providers` array in `config/app.php`.

This will register the artisan command that will be available to you.

You can also override the default config provided by the application by running `php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider"` in your projects root and change the configuration in the new `config/laravel-swagger.php` file created.

Usage
-----

[](#usage)

Generating the swagger documentation is easy, simply run `php artisan laravel-swagger:generate` in your project root. Keep in mind the command will simply print out the output in your console. If you want the docs saved in a file you can reroute the output like so: `php artisan laravel-swagger:generate > public/docs/swagger.json`

If you wish to generate docs for a subset of your routes, you can pass a filter using `--filter`, for example: `php artisan laravel-swagger:generate --filter="/api"`

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![khovsepyan](https://avatars.githubusercontent.com/u/12576574?v=4)](https://github.com/khovsepyan "khovsepyan (6 commits)")

### Embed Badge

![Health badge](/badges/hovsepyan-lara-autoswag/health.svg)

```
[![Health](https://phpackages.com/badges/hovsepyan-lara-autoswag/health.svg)](https://phpackages.com/packages/hovsepyan-lara-autoswag)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

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