added php cli support