Git manager script in php