PHPackages                             paunin/laswagger - 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. paunin/laswagger

ActiveLibrary[API Development](/categories/api)

paunin/laswagger
================

This package allows you to: generate RESTful API document using Swagger PHP

1.0.0(9y ago)016PHPPHP &gt;=5.3.0

Since Feb 3Pushed 9y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

paunin/laswagger
================

[](#pauninlaswagger)

This package is a wrapper for [Swagger-php](https://github.com/zircote/swagger-php) and makes it easy to integrate with Lumen/Larvarel.

Usage
-----

[](#usage)

### Installation

[](#installation)

Via Composer

Add information about new package in your `composer.json`

```
    "require": {
    ...
        "paunin/laswagger": ">=1.0.0"
    ...
    }
```

After the composer install finishes, register the service provider:

- Lumen Application:

```
$app->register(Laswagger\Providers\LumeSwaggerServiceProvider::class);
```

- Laravel Application: not supports yet.

Now you can wo with laswagger:

- Run `php artisan swagger:generate file_name [base_host]`: to generate swagger api docs.
- Go to `/swagger/api-docs` (default routing config) to see swagger api docs in JSON format

### Default configuration

[](#default-configuration)

```
