joeri-abbo/laravel-api-markdown-tree
Composer 安装命令:
composer require joeri-abbo/laravel-api-markdown-tree
包简介
A Laravel package to generate a tree view of API routes in Markdown format.
README 文档
README
Laravel API Markdown Tree is a package for generating API documentation in a tree view Markdown format based on your Laravel application's routes.
Installation
To install the package as a development dependency, follow these steps:
- Add the package repository to your Laravel project's
composer.jsonfile:
"repositories": [ { "type": "vcs", "url": "https://github.com/JoeriAbbo/laravel-api-markdown-tree.git" } ],
Make sure to replace the URL with the URL of your Git repository.
- Require the package in your Laravel project as a development dependency:
composer require --dev joeriabbo/laravel-api-markdown-tree: dev-master
- If you're using Laravel 5.4 or earlier, register the service provider in your config/app.php file:
'providers' => [ // ... JoeriAbbo\LaravelApiMarkdownTree\LaravelApiMarkdownTreeServiceProvider::class, ],
For Laravel 5.5 or later, the service provider will be auto-discovered.
Usage
To generate API documentation, run the following command in your Laravel project's root directory:
php artisan apidocs:generate
By default, this command will create a api_docs.md file in your Laravel project root directory with the tree view of
the
API routes in Markdown format. You can specify a custom output file by passing it as an argument, like this:
php artisan apidocs:generate custom_output.md
License This package is open-source software licensed under the MIT license.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-05-08