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(3y ago)228MITPHPPHP &gt;=7.2

Since Jun 1Pushed 3y 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 today

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 26% 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

1122d 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

[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M150](/packages/laravel-mcp)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725172.4k14](/packages/tallstackui-tallstackui)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)

PHPackages © 2026

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