问题
I was wondering if anyone knows of a library or how to perform a get pull request with pure PHP, without git being installed on the server.
First of all, is this even possible? I have seen the odd class, but they don't seem to be able to perform pull requests.
I guess an alternative would be bundling some form of stripped down version of git with my script. Would that be possible?
I am really at a loss here so any help or suggestions would be much appreciated.
Thanks.
回答1:
I have just realised that you can use SVN to request a repository from GitHub.
And SVN seems supported by PHP.
So I will use SVN, it should do the trick.
I hope this has saved someone else the trouble of Googling for hours. Give SVN + GitHub a go.
来源:https://stackoverflow.com/questions/6994773/performing-a-git-pull-in-pure-php