The main php class