前端之家收集整理的这篇文章主要介绍了
在纯PHP中检出git存储库,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
你可以试试
> https://github.com/teqneers/PHP-Stream-Wrapper-for-Git
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.
它需要在机器上安装Git,并且在撰写本文时处于测试阶段.