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.
To executives: This is a small, free, permissively licensed library that lets us show users exactly what changed between two versions of their content — the kind of "track changes" view users expect from mature tools. It replaces a build-it-ourselves effort that typically costs several engineering weeks and carries ongoing edge-case maintenance, with a dependency we can integrate in days. The risk is contained: permissive license, isolated to one feature surface, and easy to replace if it doesn't hold up.
To engineering: It's a PHP diff implementation that outputs HTML-highlighted changes, so we don't hand-roll LCS or fiddle with inline word-level markup. Low stars and a small maintainer footprint mean we should vendor or pin it and wrap it behind our own service interface so it's swappable. Recommend a short spike against our largest real document to confirm performance and output quality before it goes on the roadmap.
How can I help you explore Laravel packages today?