Laravel API文档生成器

Laravel API文档生成器。「Laravel API Documentation Generator」

  • Owner: mpociot/laravel-apidoc-generator
  • Platform: Linux, Mac, Windows
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Laravel API Documentation Generator

Automatically generate your API documentation from your existing Laravel/Lumen/Dingo routes. Here's what the output looks like.

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 ReadTheDocs. Don't forget to check out the migration guide if you're coming from v3 to v4.

License

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

Main metrics

Overview
Name With Ownermpociot/laravel-apidoc-generator
Primary LanguagePHP
Program languagePHP (Language Count: 2)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2016-05-03 20:20:16
Pushed At2024-05-23 12:14:27
Last Commit At2020-11-12 12:44:44
Release Count102
Last Release Name4.8.2 (Posted on )
First Release Name0.1.0 (Posted on )
用户参与
Stargazers Count3.5k
Watchers Count67
Fork Count606
Commits Count1.1k
Has Issues Enabled
Issues Count465
Issue Open Count35
Pull Requests Count283
Pull Requests Open Count21
Pull Requests Close Count68
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private