ssdeep is a utility for creating and comparing fuzzy hashes, which allows you to look determine how similar the data is. For a better explanation see the ssdeep project page. This a PHP extension that exposes the ssdeep API to PHP.
These details are provided for information only. No information here is legal advice and should not be used as such.