mistralys/text-diff
A PHP library for comparing text and rendering differences. It computes diffs between strings or files and presents changes in HTML or plain text via a flexible API, making it easy to add clear diff views to PHP applications.
mistralys/text-diff is a PHP library for computing and rendering the differences between two texts. It exposes a simple API that returns a structured diff, which can be rendered as HTML with highlighted insertions and deletions or inspected programmatically—useful for revision comparisons, change previews, and audit views in Laravel or any PHP application.
How can I help you explore Laravel packages today?