A PHP implementation of Git's glob.