init repo and add php syntax check hook