2017 © Pedro Peláez
 

application phpdoc-formatter

A tool to automatically fix phpDocumentor tags and annotations

image

sinsquare/phpdoc-formatter

A tool to automatically fix phpDocumentor tags and annotations

  • Wednesday, June 6, 2018
  • by SinSquare
  • Repository
  • 1 Watchers
  • 0 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 467 % Grown

The README.md

Build Status, (*1)

A simple tool for formatting PHPDoc, (*2)

The tool currently fixes: * Idention through multiline comments * Removing more than 2 empty lines * Fixing PHPDoc format, (*3)

Usage:, (*4)

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

Options:, (*5)

  --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:, (*6)

Before:, (*7)

/**
 * @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:, (*8)

/**
 * @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,
 * )
 */

The Versions

06/06 2018

dev-develop

dev-develop

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

05/06 2018

dev-master

9999999-dev

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

05/06 2018

0.1.1

0.1.1.0

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

01/06 2018

0.1.0

0.1.0.0

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

30/05 2018

0.0.7

0.0.7.0

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

30/05 2018

0.0.6

0.0.6.0

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

30/05 2018

0.0.5

0.0.5.0

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

30/05 2018

0.0.4

0.0.4.0

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

25/05 2018

0.0.3

0.0.3.0

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

25/05 2018

0.0.2

0.0.2.0

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

25/05 2018

0.0.1

0.0.1.0

A tool to automatically fix phpDocumentor tags and annotations

  Sources   Download

MIT

The Requires

 

The Development Requires