PHP library for authenticating REST APIs with tokens