Home >Backend Development >PHP Tutorial >PHP interacts with git. Is there any inherited class library?
I want to build an online work platform. I mainly use git to track work status, and use php in the background. Is there any integrated class library in php to operate git?
Or can I just use the PHP functions exec and system to execute the command?
I want to build an online work platform. I mainly use git to track work status, and use php in the background. Is there any integrated class library in php to operate git?
Or can I just use the PHP functions exec and system to execute the command?
Git is just a version control tool.
No need to inherit anything.
You only need to write your php
and then use git to upload the code.
The following article will help you use git:
http://blog.jobbole.com/78960/
GitList
, gitLab
, GitManager
and other projects seem to implement similar functions.
Also, please refer to:
http://www.oschina.net/news/5...
PHP doesn’t seem to be integrated, but you can just pick an open source project you like and modify it.
Check out this php-git
klaussilveira/gitter
https://github.com/klaussilve...
kbjr/Git.php
https://github.com/kbjr/Git.php
Provides interaction between PHP and Git