qazd/text-diff 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

qazd/text-diff

最新稳定版本:v0.1.1

Composer 安装命令:

composer require qazd/text-diff

包简介

A simple text differences visualization library

README 文档

README

TextDiff is a simple library for text differences visualization. Based on Wordpress's Compare Revisions.

DiffText Example

Installation

  • via Composer composer require qazd/text-diff
  • via Git git clone https://github.com/qazd/text-diff.git
  • or download zip

Usage

<?php require 'vendor/autoload.php'; $table = Qazd\TextDiff::render('String one', 'String two'); ?> <html> <head> <title>TextDiff</title> <link rel="stylesheet" type="text/css" href="vendor/qazd/text-diff/css/style.css"> </head> <body> <?= $table ?> </body> </html>

TextDiff::render() is the only available method. With the third argument set to false you can disable split view.

If you won't use Composer - just require src/TextDiff.php

Integrate css/style.css into your page to style the comparison table.

More

统计信息

  • 总下载量: 113.77k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 38
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 38
  • Watchers: 2
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固