Suggestions on how to implement user authentication with PHP as a backend

I’d be hard pressed to imagine a scenario where you wouldn’t want to build a RESTful API. Is it just lack of experience or a specific feature requirement?