lozhkindm/laravel-apidoc-generator

Generate beautiful API documentation from your Laravel application
1,523
Install
composer require lozhkindm/laravel-apidoc-generator
Latest Version:4.8.8
PHP:>=7.2.0
License:MIT
Last Updated:Feb 9, 2021
Links: GitHub  ·  Packagist
Maintainer: lozhkindm

Laravel API Documentation Generator

Automatically generate your API documentation from your existing Laravel/Lumen/Dingo routes.

php artisan apidoc:generate

Latest Stable VersionTotal Downloads License codecov.io Scrutinizer Code Quality Build Status StyleCI

Installation

PHP 7.2 and Laravel/Lumen 5.7 or higher are required.

If your application does not meet these requirements, you can check out the 3.x branch for older releases.

composer require --dev mpociot/laravel-apidoc-generator

Laravel

Publish the config file by running:

php artisan vendor:publish --provider="Mpociot\ApiDoc\ApiDocGeneratorServiceProvider" --tag=apidoc-config

This will create an apidoc.php file in your config folder.

Lumen

  • When using Lumen, you will need to run composer require mpociot/laravel-apidoc-generator instead.
  • Register the service provider in your bootstrap/app.php:
$app->register(\Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class);
  • Copy the config file from vendor/mpociot/laravel-apidoc-generator/config/apidoc.php to your project as config/apidoc.php. Then add to your bootstrap/app.php:
$app->configure('apidoc');

Documentation

Check out the documentation at the Beyond Code homepage.

License

The Laravel API Documentation Generator is free software licensed under the MIT license.

Related Packages

darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

2,493,525 331
despark/apidoc

Generate api documentation and use swagger to consume it

2,347 13
darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

41,890,274 2,938
jlapp/swaggervel

A great way to integrate Swagger into Laravel

970,406 484
g-six/l5-api-documentor

Generate beautiful API documentation from your Laravel application

893 0