PHPackages                             despark/apidoc - 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. despark/apidoc

ActivePackage[API Development](/categories/api)

despark/apidoc
==============

Generate api documentation and use swagger to consume it

1.4.1(9y ago)132.3k5[3 issues](https://github.com/despark/apidoc/issues)[1 PRs](https://github.com/despark/apidoc/pulls)MITPHP

Since Jan 5Pushed 7y ago5 watchersCompare

[ Source](https://github.com/despark/apidoc)[ Packagist](https://packagist.org/packages/despark/apidoc)[ RSS](/packages/despark-apidoc/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

apidoc
======

[](#apidoc)

Laravel 5 api documentation generator, based on [Swagger](http://swagger.io/)

**apidoc** use just a few lines of code added to your controllers methods.

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

[](#installation)

Require this package with composer using the following command:

```
composer require despark/apidoc

```

After that add to the providers array in config/app.php

```
Despark\Apidoc\ApiDocServiceProvider::class,

```

Then call

```
php artisan vendor:publish

```

Now you are ready to use the generator.

Usage
-----

[](#usage)

If you do all steps mentioned above than the file /yourapp/config/apidoc.php should be generated for you.

```
