Structurally compare two versions of the composer.lock file and output a JSON document with the found differences.
Compare the current version against the version two commits behind (@~2):
$ composer_lock_diff.php <(git show @~2:composer.lock) <(cat composer.lock)