php - Whether to use FOSRestBundle or just json_encode()? -
i creating api symfony 2. i'm using fosrestbundle this. since bundle , json_encode()
return same result, why should use bundle?
why shouldn't use json_encode()
encode array json returning response?
why should use bundle?
well depends on requirements are. if you're trying develop restful apis or fancy things should go bundle. if you're trying display json data front end go simple json_encode
.
Comments
Post a Comment