A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
php-htmldiff is a library for comparing two HTML files or snippets and highlighting the differences in a visually accessible manner using simple HTML. The library, originally forked from rashid2538/php-htmldiff, has been significantly enhanced with new features, bug fixes, and modifications to the original code to provide users with powerful differentiation capabilities. The library is available under the GNU General Public License, version 2.
php-htmldiff is a versatile PHP library that simplifies the comparison of HTML content by visually highlighting the differences. With features like easy Composer installation, Symfony compatibility, and customizable configurations, it offers a comprehensive solution for users looking to analyze variances in HTML files or snippets. Furthermore, the collaborative nature of the project, along with planned enhancements for testing, caching, and optional dependencies, ensures that php-htmldiff remains a valuable tool for developers seeking efficient HTML differentiation capabilities.