Now working with php hateoas lib