定制 joeri-abbo/laravel-api-markdown-tree 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. Add the package repository to your Laravel project's composer.json file:
"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.

  1. Require the package in your Laravel project as a development dependency:
   composer require --dev joeriabbo/laravel-api-markdown-tree: dev-master
  1. 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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-05-08