PHP CLI file parser class