PHP models and features implementation