AlpineAuth is an incredibly simple to use PHP user authentication library for use with both applications that  are separate from their server (such as games or mobile apps) and a more typical website environment.