ovr/phpsa
最新稳定版本:0.6.2
Composer 安装命令:
composer require --dev ovr/phpsa
包简介
PHPSA aims to bring complex static analysis for PHP applications and libraries.
README 文档
README
PHPSA - Smart Analyzer for PHP
PHPSA is a development tool aimed at bringing complex analysis for PHP applications and libraries.
P.S This software is currently in early alpha state, any contributions/stars will be awesome.
Components
- Core - Component containing definitions and other core files
- Compiler - Component to compile expression(s) and statement(s) from an abstract syntax tree
- Analyzer - Component doing various checks on your files
- ControlFlow - Component for ControlFlow (WIP)
Installation (more)
The recommended way to install phpsa is via Composer.
Run php composer.phar require ovr/phpsa or add a new requirement in your composer.json.
{
"require": {
"ovr/phpsa": "*"
}
}
How to use (more)
$ ./bin/phpsa check fixtures/ Syntax error: Syntax error, unexpected T_RETURN on line 11 in fixtures/simple/syntax/Error2.php $b = $a + 1; 123123 Notice: Constant BBBB does not exist in self scope in fixtures/simple/undefined/Const.php on 29 [undefined-const] return self::BBBB; Notice: You are trying to cast 'string' to 'string' in fixtures/simple/code-smell/StandardFunctionCall.php on 16 [stupid.cast] return (string) json_encode(array( Notice: Missing docblock for callStaticMethodBySelf() method in fixtures/Compiling/Expression/StaticCall.php on 18 [missing-docblock] public static function callStaticMethodBySelf()
Requirements
PHP >= 7.0, but you can check files that use PHP >= 5.2 with this.
Documentation
See our documentation in case you need more information on some topic.
Contributing
Check our Contributing Guide to see how you can help.
Sponsors
Thanks to our sponsors and supporters:
| JetBrains |
|---|
LICENSE
This project is open-sourced software licensed under the MIT License.
See the LICENSE file for more information.
ovr/phpsa 适用场景与选型建议
ovr/phpsa 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16.19k 次下载、GitHub Stars 达 651, 最近一次更新时间为 2015 年 06 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ovr/phpsa 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ovr/phpsa 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 16.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 652
- 点击次数: 21
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-20