php cli terminal class