PHPackages                             kevupton/auto-swagger-ui - 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. kevupton/auto-swagger-ui

ActiveExtension[API Development](/categories/api)

kevupton/auto-swagger-ui
========================

Want the swagger ui without having to set it up. Just install this package.

v0.1.3(8y ago)89.9k4[3 issues](https://github.com/kevupton/auto-swagger-ui/issues)MITJavaScriptPHP &gt;=5.3

Since Nov 29Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (7)Used By (0)

auto-swagger-ui
===============

[](#auto-swagger-ui)

Give your project some swagger docs in a matter of seconds. Simply just install the package and service providers, optionally adding the configuration file, then BAM you now have a swagger ui endpoint.

Also integrates with swagger php annotations, allowing you scan your annotations and generate a json object at a specified endpoint. 1, 2, 3, too much swag. ;)

Install
-------

[](#install)

```
composer require kevupton/auto-swagger-ui
```

Setup
-----

[](#setup)

### Add to the Service Providers:

[](#add-to-the-service-providers)

#### Laravel:

[](#laravel)

In `config/app.php` , `providers` add

```
\Kevupton\AutoSwaggerUI\Providers\AutoSwaggerUIServiceProvider::class,
```

#### Lumen:

[](#lumen)

In `bootstrap/app.php` add

```
$app->register(\Kevupton\AutoSwaggerUI\Providers\AutoSwaggerUIServiceProvider::class);
```

Run
---

[](#run)

Once you have registered the service provider, you will be able to access the swagger page at:

```
http://{my-host}/api/swagger
```

Or the json at

```
http://{my-host}/api/swagger.json
```

Config
------

[](#config)

The package can be configured by publishing the config or copying the config from the vendor files. To publish:

```
php artisan vendor:publish
```

The config:

```
