gipfl / diff
支持 ipl/html 的 php-diff 包装器
v0.3.0
2022-04-18 11:39 UTC
Requires
- php: >=5.6.0
- ext-mbstring: *
- ipl/html: >=0.2
This package is auto-updated.
Last update: 2024-09-18 16:56:51 UTC
README
基于 ipl 的现代化 php-diff 分支
用法
<?php use gipfl\Diff\HtmlRenderer\SideBySideDiff; use gipfl\Diff\PhpDiff; require_once 'vendor/autoload.php'; $diff = new PhpDiff( file_get_contents(__DIR__ . '/left.json'), file_get_contents(__DIR__ . '/right.json') ); $html->add(new SideBySideDiff($diff));
更改
v0.2.0
- 重大变更:最初此版本不需要 Icinga Web,但现在 CSS 假设存在
@color-ok
和@color-critical
。因此,如果在其他地方使用此库,您需要相应地定义此类颜色(绿色和红色)。 - 功能:颜色调整以支持即将到来的 Icinga Web 暗色主题
致谢
- 版权 (c) 2009 Chris Boulton chris.boulton@interspire.com
- 版权 (c) 2020 Thomas Gelf thomas@gelf.net
此项目基于 Chris Boulton 的出色工作,该项目已被放弃。尝试了各种分支,与 Phalcon 框架团队 和 PHPSpec 维护的分支合作了一段时间。然后最终决定自己分叉并现代化代码。