Git Streamwrapper for PHP is a PHP library that allows PHP code to interact with one or multiple Git repositories from within an application. The library consists of a Git repository abstraction that can be used to programatically access Git repositories and of a stream wrapper that can be hooked into the PHP stream infrastructure to allow the developer to use file and directory access functions directly on files in a Git repository. The library provides means to access status information on a Git repository, such as the log, the current repository status or commit information, as well.
The Git Streamwrapper for PHP core is a wrapper around the Git command line binary so it is required to have Git installed on the machine running the PHP code. Git Streamwrapper for PHP does not include a Git protocol abstraction, it relies on the Git command line binary for all its functionality.
https://github.com/teqneers/PHP-Stream-Wrapper-for-Git
http://travis-ci.org/#!/teqneers/PHP-Stream-Wrapper-for-Git