PHPackages                             php-autogen/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. [API Development](/categories/api)
4. /
5. php-autogen/swagger

ActiveLibrary[API Development](/categories/api)

php-autogen/swagger
===================

Gerador de documentação de API automática com base no swagger

1.1.9(2y ago)228MITPHPPHP &gt;=7.2

Since Jun 1Pushed 2y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (15)Used By (0)

PHP-AUTOGEN-SWAGGER
===================

[](#php-autogen-swagger)

Gerador de documentação de API automática utilizando a biblioteca darkaonline/l5-swagger

REQUISITOS
----------

[](#requisitos)

[https://github.com/DarkaOnLine/L5-Swagger/wiki/Installation-&amp;-Configuration](https://github.com/DarkaOnLine/L5-Swagger/wiki/Installation-&-Configuration)

INSTALAÇÃO
----------

[](#instalação)

```
composer require php-autogen/swagger

```

UTILIZAÇÃO
----------

[](#utilização)

### Passo 01:

[](#passo-01)

```
No framework Laravel rode o comando:

php artisan gen-swagger-doc

```

### Passo 02:

[](#passo-02)

```
As "Rules" das "Actions" ou "Controllers" devem seguir o mesmo padrão para que funcione com exito:

    public function rules()
    {
        return [
            'password' => 'required',
            'email'      => 'required|string'
        ];
    }

```

### Passo 03:

[](#passo-03)

### Passo 04:

[](#passo-04)

```
 Adicione a seguinte anotação "INFO" dentro de alguma anotação criada automaticamente

* @OA\Info(title="API DOCUMENTATION", version="0.1")
*
* @OA\SecurityScheme(
*     securityScheme="bearerAuth",
*     type="http",
*     scheme="bearer",
*     bearerFormat="JWT"
* ),
*
* @OA\Security(
*     security={{"bearerAuth": {}}}
* )
*

EXEMPLO:
/**
*
* @OA\Info(title="API DOCUMENTATION", version="0.1")
*
* @OA\SecurityScheme(
*     securityScheme="bearerAuth",
*     type="http",
*     scheme="bearer",
*     bearerFormat="JWT"
* ),
*
* @OA\Security(
*     security={{"bearerAuth": {}}}
* )
*
* @OA\Post(
*     path="/auth",
*     summary="Authenticate",
*     tags={"auth"},
*
*         @OA\RequestBody(
*         required=true,
*         @OA\JsonContent(
*             @OA\Property(property="password", type="required"),
*             @OA\Property(property="cpf", type="required"),
*
*         )
*     ),
*     @OA\Response(
*         response="201 - Authenticate",
*         description="Successful operation",
*     ),
*     security={{"bearerAuth": {}}},
* ),
*/

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87% 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 ~0 days

Total

12

Last Release

1077d ago

### Community

Maintainers

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

---

Top Contributors

[![sigaeli](https://avatars.githubusercontent.com/u/107888475?v=4)](https://github.com/sigaeli "sigaeli (20 commits)")[![EliezerRibeiroNunes](https://avatars.githubusercontent.com/u/69021909?v=4)](https://github.com/EliezerRibeiroNunes "EliezerRibeiroNunes (3 commits)")

### Embed Badge

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

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

805.7M125](/packages/saloonphp-laravel-plugin)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

10710.0k](/packages/neuron-core-neuron-laravel)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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