Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamwojs/php-cs-fixer-phpdoc-force-fqcn
php-cs-fixer rule to force using FQCN in DocBlock comments
https://github.com/adamwojs/php-cs-fixer-phpdoc-force-fqcn
Last synced: 4 days ago
JSON representation
php-cs-fixer rule to force using FQCN in DocBlock comments
- Host: GitHub
- URL: https://github.com/adamwojs/php-cs-fixer-phpdoc-force-fqcn
- Owner: adamwojs
- License: mit
- Created: 2018-09-02T17:49:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-14T08:26:33.000Z (over 2 years ago)
- Last Synced: 2024-10-30T01:38:56.475Z (7 days ago)
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 18
- Watchers: 2
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-cs-fixer-phpdoc-force-fqcn
[php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) rule to force using FQCN (Fully-Qualified Class Name) in DocBlock comments.
## Installation
You can install the package via composer:
```bash
composer require --dev adamwojs/php-cs-fixer-phpdoc-force-fqcn
```## Usage
In your .php_cs file:
```php
registerCustomFixers([
new \AdamWojs\PhpCsFixerPhpdocForceFQCN\Fixer\Phpdoc\ForceFQCNFixer()
])
->setRules([
// ...
// (2) Enable AdamWojs/phpdoc_force_fqcn_fixer rule
'AdamWojs/phpdoc_force_fqcn_fixer' => true,
])
// ...
;
```