Parse git repositories in native PHP