macfja / phpqa-extensions
A tool to add more QA tools to PHPQA
Installs: 7 144
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 2
Open Issues: 7
Language:XSLT
Requires
- edgedesign/phpqa: ^1.18
- symfony/console: 3.*|4.*
- symfony/yaml: ^3.4
- wikimedia/relpath: ^2.1
Requires (Dev)
- povils/phpmnd: ^2.0
- rskuipers/php-assumptions: ^0.7.0
This package is auto-updated.
Last update: 2024-11-29 06:00:45 UTC
README
Add more tools to PHPQA
List of tools
- PHP Magic Number Detector: PHP Magic Number Detector.
- PhpAssumptions: Tool to detect assumptions.
- PhpCodeAnalyzer: PhpCodeAnalyzer finds usage of non-built-in extensions in your php code.
Usage
Get the list of available tools
$ php vendor/bin/phpqa-extensions.php --tools
List of available tools
=======================
--------------------------- -------- ----------------------------- -----------
Name CLI Composer Installed
--------------------------- -------- ----------------------------- -----------
PhpAssumptions phpa rskuipers/php-assumptions No
PhpCodeAnalyzer phpca wapmorgan/php-code-analyzer No
PHP Magic Number Detector phpmnd povils/phpmnd No
--------------------------- -------- ----------------------------- -----------
Install a tool on a project
$ php vendor/bin/phpqa-extensions.php --add phpmnd
or
$ php vendor/bin/phpqa-extensions.php --add "PHP Magic Number Detector"
or
$ php vendor/bin/phpqa-extensions.php --add povils/phpmnd
Several tools can be add in one times:
$ php vendor/bin/phpqa-extensions.php --add phpmnd --add phpa
Enable an external tool
$ php vendor/bin/phpqa-extensions.php --enable phpmnd:\MacFJA\PHPQAExtensions\Tools\Analyzer\PhpMagicNumber:app/report/phpmagicnumber.xsl
The syntax of the parameter --enabled
is: $CLI_NAME$:$WRAPPER_CLASS$
or $CLI_NAME$:$WRAPPER_CLASS$:$REPORT_PATH$
.
With:
$CLI_NAME$
: The name of the CLI command$WRAPPER_CLASS$
: The class that will be used by PHPQA to call the tool$REPORT_PATH$
: The relative path of the XLST file to do the HTML transformation (optional)
Options
How to contribute
If you found a nice tool that you want to added, open a issue on GitHub.
You can also create Pull Request of a new tool.