定制 ansjabar/laradocs 二次开发

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

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

ansjabar/laradocs

Composer 安装命令:

composer require ansjabar/laradocs

包简介

Generate beautiful documentation for your Laravel applications with DocBlocks.

README 文档

README

LaraDocs

Generate beautiful documentation for your Laravel applications with DocBlocks..

LaraDocs

LaraDocs is simply a code-driven package provides an easy way to create beautiful documentation for your product or application inside your Laravel app.

Getting Started

☝️ Install the package via composer.

composer require ansjabar/laradocs

✌️ Run the following command to publish assets and config file laraadoc.php

php artisan vendor:publish --provider="AnsJabar\LaraDocs\LaraDocsServiceProvider"

✌️ Run the following command to generate docs

php artisan laradocs:generate

Visit your app domain with /laradocs endpoint. That's it.

Usage Example

<?php

/**
 * @title User Management
 * @description This is user management group description
 */
class UserController
{
	/**
	 * @title Login
	 * @description Login description goes here
	 * @method GET
	 * @queryParams param1 required Number param description
	 * @queryParams param2 optional Number param description
	 * @dataParams param1 required Number param description
	 * @dataParams param2 optional Number param description
	 * @headers header1 required Number param description
	 * @headers header2 optional String param description
	 * @successData {"name":"John", "age":31, "city":"New York"}
	 * @failureErrors {"message":"Something went wront"}
	 */
	public function login()
	{

	}
}

Note

This package will parse all routes files mapped in RouteServiceProvider.php. Closure routes are ignored.

License

This package is licensed under the MIT License - see the LICENSE.md file for details.

统计信息

  • 总下载量: 28
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固