2017 © Pedro Peláez
 

library php-docblock-checker

A simple tool for checking that your PHP classes and methods use docblocks.

image

block8/php-docblock-checker

A simple tool for checking that your PHP classes and methods use docblocks.

  • Monday, September 4, 2017
  • by dancryer
  • Repository
  • 9 Watchers
  • 18 Stars
  • 93,931 Installations
  • PHP
  • 40 Dependents
  • 1 Suggesters
  • 21 Forks
  • 7 Open issues
  • 13 Versions
  • 4 % Grown

The README.md

PHP DocBlock Checker

Check PHP files within a directory for appropriate use of Docblocks., (*1)

Installation

Composer:
composer require dancryer/php-docblock-checker , (*2)

Usage

CMD:
call vendor/bin/phpdoccheck {params} , (*3)

To validate changed files in the last git commit:, (*4)

git diff --name-only HEAD HEAD^ | ./vendor/bin/phpdoccheck --from-stdin , (*5)

If used within a travis context, this may be useful: git diff --name-only ${TRAVIS_COMMIT_RANGE:-"HEAD^"} | ./vendor/bin/phpdoccheck --from-stdin , (*6)

Parameters

Parameters may be passed either from the command line, or via a config file (defaults to phpdoccheck.yml in the currrent working directory)., (*7)

The config file location may be overriden by specifying the --config-file option, (*8)

If a parameter is specified in both places, the command line will take priority., (*9)

Short Long Description
-h --help Display help message.
-x --exclude=EXCLUDE Files and directories (absolute or pattern) to exclude.
-d --directory=DIRECTORY Directory to scan. [default: "./"]
none --cache-file=FILE Use cache file to speed up processing.
none --config-file=FILE Use config file to specify options [default: "./phpdoccheck.yml"].
none --from-stdin Use list of files provided via stdin
none --skip-classes Don't check classes for docblocks.
none --skip-methods Don't check methods for docblocks.
none --skip-signatures Don't check docblocks against method signatures.
none --only-signatures Only check methods that have parameters or returns.
-j --json Output JSON instead of a log.
-l --files-per-line=FILES-PER-LINE Number of files per line in progress [default: 50]
-w --fail-on-warnings Consider the check failed if any warnings are produced.
-i --info-only Information-only mode, just show summary.
-q --quiet Do not output any message.
-V --version Display this application version.
none --ansi Force ANSI output.
none --no-ansi Disable ANSI output.
-n --no-interaction Do not ask any interactive question.
-v -vv -vvv --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.

Each option is also available in the config file:, (*10)

directory: src
files-per-line: 10
cache-file: .phpdoccheck
exclude:
  - foo/bar/baz.php
  - foo/*
options:
  - skip-classes
  - skip-methods
  - skip-signatures
  - only-signatures
  - fail-on-warnings
  - info-only
  - from-stdin
  - json

The Versions

04/09 2017

dev-master

9999999-dev https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

15/02 2017

1.3.4

1.3.4.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

15/02 2017

1.3.3

1.3.3.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

15/02 2017

1.3.2

1.3.2.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

15/02 2017

1.3.1

1.3.1.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

15/02 2017

1.3.0

1.3.0.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

15/02 2017

1.2.1

1.2.1.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

15/02 2017

1.2.0

1.2.0.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

25/08 2016

1.1.0

1.1.0.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

23/10 2014

1.0.3

1.0.3.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

testing php docblock checker comment phpci code quality

08/05 2014

1.0.1

1.0.1.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

testing php docblock checker comment phpci code quality

08/05 2014

1.0.2

1.0.2.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

testing php docblock checker comment phpci code quality

08/05 2014

1.0.0

1.0.0.0 https://www.phptesting.org/

A simple tool for checking that your PHP classes and methods use docblocks.

  Sources   Download

BSD-2-Clause

The Requires

 

testing php docblock checker comment phpci code quality