https://github.com/php-censor/phpdoc-checker
A simple tool for checking that your PHP classes and methods use PHPDocs (PHP DocBlock Checker fork).
https://github.com/php-censor/phpdoc-checker
hacktoberfest
Last synced: 4 months ago
JSON representation
A simple tool for checking that your PHP classes and methods use PHPDocs (PHP DocBlock Checker fork).
- Host: GitHub
- URL: https://github.com/php-censor/phpdoc-checker
- Owner: php-censor
- License: bsd-2-clause
- Created: 2018-06-16T08:48:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-07T14:42:48.000Z (about 2 years ago)
- Last Synced: 2025-05-25T21:48:54.165Z (5 months ago)
- Topics: hacktoberfest
- Language: PHP
- Homepage:
- Size: 204 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/php-censor/phpdoc-checker)
[](https://github.com/php-censor/phpdoc-checker/actions)
[](http://ci.php-censor.info/build-status/view/16?branch=master)
[](https://codecov.io/gh/php-censor/phpdoc-checker)
[](https://packagist.org/packages/php-censor/phpdoc-checker)
[](https://packagist.org/packages/php-censor/phpdoc-checker)
[](https://packagist.org/packages/php-censor/phpdoc-checker)
# PHPDoc Checker
Check PHP files within a directory for appropriate use of PHPDocs (Docblocks). PHPDoc Checker is fork of
[PHP DocBlock Checker](https://github.com/Block8/php-docblock-checker).
## Installation
**Composer**:
```bash
composer require php-censor/phpdoc-checker
```
## Building Phar Package
```bash
box.phar compile
```
## Usage
```bash
vendor/bin/phpdoc-checker {params}
```
### Parameters
Short | Long | Description
------------ | ------------- | -----------
-h | --help | Display help message.
-x | --exclude=EXCLUDE | Files and directories to exclude.
-d | --directory=DIRECTORY | Directory to scan. [default: "./"]
-f | --files=FILES | Files to scan.
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.
-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.
## Unit tests
Phpunit tests:
```bash
vendor/bin/phpunit --configuration=phpunit.xml.dist --coverage-text --coverage-html=tests/var/coverage
```
## License
PHPDoc Checker is open source software licensed under the [BSD-2-Clause license](LICENSE).