定制 sinsquare/phpdoc-formatter 二次开发

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

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

sinsquare/phpdoc-formatter

Composer 安装命令:

composer require sinsquare/phpdoc-formatter

包简介

A tool to automatically fix phpDocumentor tags and annotations

README 文档

README

Build Status

A simple tool for formatting PHPDoc

The tool currently fixes:

  • Idention through multiline comments
  • Removing more than 2 empty lines
  • Fixing PHPDoc format

Usage:

phpdoc-formatter [--option value] [/path/to/project ...]

Options:

  --exclude (-e)    Exclude path(s)
                    ex: --exclude vendor,library
  --version (-v)    Displays the version

  --ident (-i)      Sets the ident character(s)
                    ex: --ident "    "
  --newline (-n)    Sets the newline character(s)
                    ex: --ident "\r\n"
  --help (-h)       Displays this message

Example:

Before:

/**
 * @SWG\Info(
* title="API",
 *    version="1.0"
 * )
 * 
 *    @SWG\Swagger(
 *   host=API_HOST,
 * basePath=API_BASE_PATH
 *   )
 * 
 *   @SWG\SecurityScheme(
 *  securityDefinition="JWTTokenAuth",
 *    type="apiKey",
 *  in="header",
 *     name="Authorization",
 *   description=API_DEFAULT_TOKEN,
 *   )
 */

After:

/**
 * @SWG\Info(
 *     title="API",
 *     version="1.0"
 * )
 * 
 * @SWG\Swagger(
 *     host=API_HOST,
 *     basePath=API_BASE_PATH
 * )
 * 
 * @SWG\SecurityScheme(
 *     securityDefinition="JWTTokenAuth",
 *     type="apiKey",
 *     in="header",
 *     name="Authorization",
 *     description=API_DEFAULT_TOKEN,
 * )
 */

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固