A sample implementation of OAuth 2.0 server in PHP using Authlete.