GitHub repository: sdlins/php-diff
Description: A comprehensive library for generating differences between two strings in multiple formats (unified, side by side HTML etc).