joshdifabio/semantic-diff
Composer 安装命令:
composer require joshdifabio/semantic-diff
包简介
A library for performing semantic diffs of PHP code
README 文档
README
API status
Until the first tag is created, this package should be considered very unstable.
Usage
use PhpParser\Parser; use PhpParser\Lexer; use SemanticDiff\Diff\Factory; use SemanticDiff\Status; $phpParser = new Parser(new Lexer); $diff = (new Factory)->createDiff( $phpParser->parse($oldPhpCode), $phpParser->parse($newPhpCode) ); $status = $diff->getStatus(); /* * $status is now one of: * Status::NO_CHANGES * Status::API_ADDITIONS * Status::INTERNAL_CHANGES * Status::API_CHANGES * Status::INCOMPATIBLE_API */
License
Semantic Diff is released under the MIT license.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-27