PHPackages                             zquintana/lara-swag - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. zquintana/lara-swag

ActiveLaravel-package[HTTP &amp; Networking](/categories/http)

zquintana/lara-swag
===================

Generates documentation for your REST API from annotations

2.0(7y ago)12.4kMITJavaScriptPHP ~7.0|~7.1

Since Nov 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zquintana/LaraSwag)[ Packagist](https://packagist.org/packages/zquintana/lara-swag)[ RSS](/packages/zquintana-lara-swag/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (23)Versions (3)Used By (0)

Lara Swag
=========

[](#lara-swag)

[![Build Status](https://camo.githubusercontent.com/f4ad2b306b97856e48691911229a721705b9502228157da1040a44672b0967aa/68747470733a2f2f7472617669732d63692e6f72672f7a7175696e74616e612f4c617261537761672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/zquintana/LaraSwag)[![Total Downloads](https://camo.githubusercontent.com/add3837506555189b39f8763acd6fd8714b07313ef4d86996522235559db9145/68747470733a2f2f706f7365722e707567782e6f72672f7a7175696e74616e612f6c6172612d737761672f646f776e6c6f616473)](https://packagist.org/packages/zquintana/lara-swag)[![Latest Stable Version](https://camo.githubusercontent.com/7368d9cfd3094229c236aff99544493f0b2e9487ebb8fc8a7b8b25f6de384ab3/68747470733a2f2f706f7365722e707567782e6f72672f7a7175696e74616e612f6c6172612d737761672f762f737461626c65)](https://packagist.org/packages/zquintana/lara-swag)

The **LaraSwag** package allows you to generate a decent documentation for your APIs.

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

[](#installation)

First, open a command console, enter your project directory and execute the following command to download the latest version of this bundle (still in beta, for a stable version look [here](https://github.com/nelmio/NelmioApiDocBundle/tree/2.x)):

```
composer require zquintana/lara-swag dev-master

```

Then add the service provider to your app config:

```
ZQuintana\LaraSwag\Provider\LaraSwagProvider::class
```

To install the vendor assets like configurations and templates run:

```
$ php artisan vendor:publish --provider="ZQuintana\LaraSwag\Provider\LaraSwagProvider::class"
```

To browse your documentation with Swagger UI, register the routes in `config/routing/lara_swag.php`. To make this easier after you run the `vendor:publish` command you can add the following to your routes config file:

```
