slim php REST API for angular