PHP REST API for Battlepro, old project