macfja/phpqa-extensions
Composer 安装命令:
composer require macfja/phpqa-extensions
包简介
A tool to add more QA tools to PHPQA
关键字:
README 文档
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
| Option name | Default | Tool | Description |
|---|---|---|---|
| phpmnd.ignore-numbers | null | PHP Magic Number Detector | List (comma separate) of number to ignore (typically 0,1,2) |
| phpmnd.ignore-funcs | null | PHP Magic Number Detector | List (comma separate) of function to ignore |
| phpmnd.ignore-strings | null | PHP Magic Number Detector | List (comma separate) of strings value to ignore |
| phpmnd.strings | false |
PHP Magic Number Detector | Activate the strings literal analysis |
| phpca.since | null | PhpCodeAnalyzer | Only include extensions not included since version |
| phpca.extension | null | PhpCodeAnalyzer | Look for usage of a specific extension |
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.
macfja/phpqa-extensions 适用场景与选型建议
macfja/phpqa-extensions 是一款 基于 XSLT 开发的 Composer 扩展包,目前已累计 7.21k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2018 年 04 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extensions」 「phpqa」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 macfja/phpqa-extensions 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 macfja/phpqa-extensions 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 macfja/phpqa-extensions 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A collection of helpers for PHPUnit to ease testing Tarantool libraries.
Register more Twig filters for your OctoberCMS templates
Bundle for Doctrine enumerations extension for Postgres
Doctrine extension to manage enumerations in PostgreSQL
PhpPlaisio: Phing Extensions
Integrate the doctrine-translatable extension in Symfony2
统计信息
- 总下载量: 7.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-04